Merge branch 'jk/pack-revindex'
[gitweb.git] / t / t3418-rebase-continue.sh
index 2680375628207d0d46ee4a9c8335840609461e0a..4428b9086e8bcb383df801834d0de323f316f4fa 100755 (executable)
@@ -40,6 +40,25 @@ test_expect_success 'non-interactive rebase --continue works with touched file'
        git rebase --continue
 '
 
+test_expect_success 'non-interactive rebase --continue with rerere enabled' '
+       test_config rerere.enabled true &&
+       test_when_finished "test_might_fail git rebase --abort" &&
+       git reset --hard commit-new-file-F2-on-topic-branch &&
+       git checkout master &&
+       rm -fr .git/rebase-* &&
+
+       test_must_fail git rebase --onto master master topic &&
+       echo "Resolved" >F2 &&
+       git add F2 &&
+       cp F2 F2.expected &&
+       git rebase --continue &&
+
+       git reset --hard commit-new-file-F2-on-topic-branch &&
+       git checkout master &&
+       test_must_fail git rebase --onto master master topic &&
+       test_cmp F2.expected F2
+'
+
 test_expect_success 'rebase --continue can not be used with other options' '
        test_must_fail git rebase -v --continue &&
        test_must_fail git rebase --continue -v