Skip to content

Commit 1231cab

Browse files
hanwengitster
authored andcommitted
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 <[email protected]> Reviewed-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dc47489 commit 1231cab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/t1415-worktree-refs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ test_expect_success 'setup' '
1616
git -C wt2 update-ref refs/worktree/foo HEAD
1717
'
1818

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' '
2023
git pack-refs --all &&
2124
test_path_is_missing .git/refs/tags/wt1 &&
2225
test_path_is_file .git/refs/worktree/foo &&

0 commit comments

Comments
 (0)