]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1415-worktree-refs.sh
Merge branch 'hn/refs-test-cleanup'
[thirdparty/git.git] / t / t1415-worktree-refs.sh
index 011a1a5e5e3611b425688ea95d392432d5fceb37..a3e6ea08088b15ee461c53e2baebe7d0dfb19664 100755 (executable)
@@ -16,7 +16,10 @@ test_expect_success 'setup' '
        git -C wt2 update-ref refs/worktree/foo HEAD
 '
 
-test_expect_success 'refs/worktree must not be packed' '
+# The 'packed-refs' file is stored directly in .git/. This means it is global
+# to the repository, and can only contain refs that are shared across all
+# worktrees.
+test_expect_success REFFILES 'refs/worktree must not be packed' '
        git pack-refs --all &&
        test_path_is_missing .git/refs/tags/wt1 &&
        test_path_is_file .git/refs/worktree/foo &&