summaryrefslogtreecommitdiff
path: root/git-rebase--interactive.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-10-28 00:03:24 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-10-28 00:03:24 -0700
commitaab748636dbbd6412af6f4996c2791eba4246c0c (patch)
treec80f0114021a14cd0263a98c2687cc8261e5dff1 /git-rebase--interactive.sh
parentDo not try to remove directories when removing old links (diff)
parentrebase -i: more graceful handling of invalid commands (diff)
downloadtgif-aab748636dbbd6412af6f4996c2791eba4246c0c.tar.xz
Merge branch 'maint-1.6.4' into maint
* maint-1.6.4: rebase -i: more graceful handling of invalid commands help -i: properly error out if no info viewer can be found
Diffstat (limited to 'git-rebase--interactive.sh')
-rwxr-xr-xgit-rebase--interactive.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 23ded48322..9b1e899e27 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -408,7 +408,12 @@ do_next () {
;;
*)
warn "Unknown command: $command $sha1 $rest"
- die_with_patch $sha1 "Please fix this in the file $TODO."
+ if git rev-parse --verify -q "$sha1" >/dev/null
+ then
+ die_with_patch $sha1 "Please fix this in the file $TODO."
+ else
+ die "Please fix this in the file $TODO."
+ fi
;;
esac
test -s "$TODO" && return