]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1415: set REFFILES for test specific to storage format
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 31 May 2021 16:56:37 +0000 (16:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2021 01:01:55 +0000 (10:01 +0900)
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>
t/t1415-worktree-refs.sh

index 7ab91241ab7c9fe305ab3fc85326f06aee5e5c49..66f27d0fdfc9d938af3b59caef7dcce23bc9dcad 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 &&