commit-graph tests: test a graph that's too small
[gitweb.git] / t / t1410-reflog.sh
index 353bdfd415643daac1cc86bfc3ea47f553111f4a..ae8a448e34356034a88fcf0799ef2f53e55f73b8 100755 (executable)
@@ -368,4 +368,19 @@ test_expect_success 'continue walking past root commits' '
        )
 '
 
+test_expect_success 'expire with multiple worktrees' '
+       git init main-wt &&
+       (
+               cd main-wt &&
+               test_tick &&
+               test_commit foo &&
+               git  worktree add link-wt &&
+               test_tick &&
+               test_commit -C link-wt foobar &&
+               test_tick &&
+               git reflog expire --verbose --all --expire=$test_tick &&
+               test_must_be_empty .git/worktrees/link-wt/logs/HEAD
+       )
+'
+
 test_done