From af2f0ebcbdb164043d6ad72c81c6ce5cdadf63b5 Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Thu, 13 Jun 2013 21:36:12 +0530 Subject: rebase: finish_rebase() in fast-forward rebase In the following case $ git rebase master Fast-forwarded autostash-fix to master. The autostash is not applied automatically, because this codepath forgets to call finish_rebase(). Fix this. Also add a test to guard against regressions. Signed-off-by: Ramkumar Ramachandra Signed-off-by: Junio C Hamano --- git-rebase.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'git-rebase.sh') diff --git a/git-rebase.sh b/git-rebase.sh index 2122fe030e..154d4be0a4 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -579,6 +579,7 @@ if test "$mb" = "$orig_head" then say "$(eval_gettext "Fast-forwarded \$branch_name to \$onto_name.")" move_to_original_branch + finish_rebase exit 0 fi -- cgit v1.2.1