Otherwise it would fail with GIT_TEST_COMMIT_GRAPH=1. --- t/t7007-show.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/t/t7007-show.sh b/t/t7007-show.sh index 42d3db6246..93244cd718 100755 --- a/t/t7007-show.sh +++ b/t/t7007-show.sh @@ -4,16 +4,15 @@ test_description='git show' . ./test-lib.sh -test_expect_success setup ' +test_expect_success 'showing a tag that points at a missing object' ' + test_when_finished "git tag -d foo-tag" && echo hello world >foo && H=$(git hash-object -w foo) && git tag -a foo-tag -m "Tags $H" $H && HH=$(expr "$H" : "\(..\)") && H38=$(expr "$H" : "..\(.*\)") && - rm -f .git/objects/$HH/$H38 -' + rm -f .git/objects/$HH/$H38 && -test_expect_success 'showing a tag that point at a missing object' ' test_must_fail git --no-pager show foo-tag ' -- 2.27.0.rc1.431.g5c813f95dc