t1415: set REFFILES for test specific to storage format
Packing refs (and therefore checking that certain refs are not packed) is a property of the packed/loose ref storage. Add a comment to explain what the test checks. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Han-Wen Nienhuys committed
May 31, 2021 at 16:56 UTC
1231cab341e3e14065e39a5403ad8026c9bc19a8
1 file changed
+4
-1
t/t1415-worktree-refs.sh
+4
-1
@@ -16,7 +16,10 @@ test_expect_success 'setup' '
16
git -C wt2 update-ref refs/worktree/foo HEAD
17
'
18
19
-test_expect_success 'refs/worktree must not be packed' '
19
+# The 'packed-refs' file is stored directly in .git/. This means it is global
20
+# to the repository, and can only contain refs that are shared across all
21
+# worktrees.
22
+test_expect_success REFFILES 'refs/worktree must not be packed' '
23
git pack-refs --all &&
24
test_path_is_missing .git/refs/tags/wt1 &&
25
test_path_is_file .git/refs/worktree/foo &&