diff options
Diffstat (limited to 'git-rebase--interactive.sh')
| -rwxr-xr-x | git-rebase--interactive.sh | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index a1879e3ace..53ad248ee5 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -416,7 +416,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  | 
