Skip to content

Commit

Permalink
t5000: drop tag to supposedly unreachable object
Browse files Browse the repository at this point in the history
We try to create an unreachable commit, but test_commit will
retain a tag pointing to it. Oops.

Signed-off-by: Jeff King <[email protected]>
  • Loading branch information
peff committed Nov 27, 2024
1 parent 2aa32f2 commit 2c680ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t5000-tar-tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ test_expect_success 'git archive --remote outside of a git repo' '

test_expect_success 'clients cannot access unreachable commits' '
test_commit unreachable &&
git tag -d unreachable &&
sha1=$(git rev-parse HEAD) &&
git reset --hard HEAD^ &&
git archive $sha1 >remote.tar &&
Expand Down

0 comments on commit 2c680ca

Please sign in to comment.