dir.c: fix missing dir invalidation in untracked code
[gitweb.git] / t / t3406-rebase-message.sh
index fe8c27ff23d4e09fb7494dc2418ae769c7cc2ba2..0392e36d2364c8149f2a628a0901f113b7a5875f 100755 (executable)
@@ -30,6 +30,28 @@ test_expect_success 'rebase -m' '
        test_cmp expect actual
 '
 
+test_expect_success 'rebase against master twice' '
+       git rebase master >out &&
+       test_i18ngrep "Current branch topic is up to date" out
+'
+
+test_expect_success 'rebase against master twice with --force' '
+       git rebase --force-rebase master >out &&
+       test_i18ngrep "Current branch topic is up to date, rebase forced" out
+'
+
+test_expect_success 'rebase against master twice from another branch' '
+       git checkout topic^ &&
+       git rebase master topic >out &&
+       test_i18ngrep "Current branch topic is up to date" out
+'
+
+test_expect_success 'rebase fast-forward to master' '
+       git checkout topic^ &&
+       git rebase topic >out &&
+       test_i18ngrep "Fast-forwarded HEAD to topic" out
+'
+
 test_expect_success 'rebase --stat' '
        git reset --hard start &&
         git rebase --stat master >diffstat.txt &&