rebase: finish_rebase() in noop rebase
[gitweb.git] / t / t3420-rebase-autostash.sh
index 1bde00716046e5483b7121d31a455b41f82d8342..90eb26493cd309da34687dffc939166069cd88c6 100755 (executable)
@@ -152,6 +152,17 @@ test_expect_success "rebase: fast-forward rebase" '
        git checkout feature-branch
 '
 
+test_expect_success "rebase: noop rebase" '
+       test_config rebase.autostash true &&
+       git reset --hard &&
+       git checkout -b same-feature-branch feature-branch &&
+       test_when_finished git branch -D same-feature-branch &&
+       echo dirty >>file1 &&
+       git rebase feature-branch &&
+       grep dirty file1 &&
+       git checkout feature-branch
+'
+
 testrebase "" .git/rebase-apply
 testrebase " --merge" .git/rebase-merge
 testrebase " --interactive" .git/rebase-merge