diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-05-31 16:56:37 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-06-02 10:01:55 +0900 |
commit | 1231cab341e3e14065e39a5403ad8026c9bc19a8 (patch) | |
tree | 453ea5b81bf8175392cbd4c2c87f10c4e88416fd /t/t1415-worktree-refs.sh | |
parent | t4202: mark bogus head hash test with REFFILES (diff) | |
download | tgif-1231cab341e3e14065e39a5403ad8026c9bc19a8.tar.xz |
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>
Diffstat (limited to 't/t1415-worktree-refs.sh')
-rwxr-xr-x | t/t1415-worktree-refs.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t1415-worktree-refs.sh b/t/t1415-worktree-refs.sh index 7ab91241ab..66f27d0fdf 100755 --- a/t/t1415-worktree-refs.sh +++ b/t/t1415-worktree-refs.sh @@ -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 && |