Merge branch 'master' of git://git.kernel.org/pub/scm/git/git
[gitweb.git] / t / t3418-rebase-continue.sh
index 0210b2ac6f0709cce4bf7b656b3c61a751330e61..bdaa511bb0ae1082568e83781252f667b39cda8a 100755 (executable)
@@ -254,4 +254,15 @@ test_expect_success 'the todo command "break" works' '
        test_path_is_file execed
 '
 
+test_expect_success '--reschedule-failed-exec' '
+       test_when_finished "git rebase --abort" &&
+       test_must_fail git rebase -x false --reschedule-failed-exec HEAD^ &&
+       grep "^exec false" .git/rebase-merge/git-rebase-todo &&
+       git rebase --abort &&
+       test_must_fail git -c rebase.rescheduleFailedExec=true \
+               rebase -x false HEAD^ 2>err &&
+       grep "^exec false" .git/rebase-merge/git-rebase-todo &&
+       test_i18ngrep "has been rescheduled" err
+'
+
 test_done