aboutsummaryrefslogtreecommitdiff
path: root/git/git-orig
diff options
context:
space:
mode:
Diffstat (limited to 'git/git-orig')
-rwxr-xr-xgit/git-orig1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/git-orig b/git/git-orig
index a792390..c7be71b 100755
--- a/git/git-orig
+++ b/git/git-orig
@@ -13,6 +13,7 @@ for f in "$@"; do
done
git checkout "$h" -- "$@"
+git reset "$@" >/dev/null
for f in "$@"; do
mv -i "$f" "$f".orig