From: Han-Wen Nienhuys Date: Mon, 31 May 2021 16:56:25 +0000 (+0000) Subject: t5000: inspect HEAD using git-rev-parse X-Git-Tag: v2.33.0-rc0~67^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1ed224753728b6defc6bc6e9058717a0645482d;p=thirdparty%2Fgit.git t5000: inspect HEAD using git-rev-parse Signed-off-by: Han-Wen Nienhuys Reviewed-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 8c5867b6c8..2c88d1c159 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -243,10 +243,11 @@ test_expect_success 'validate file modification time' ' test_cmp expected.mtime b.mtime ' -test_expect_success \ - 'git get-tar-commit-id' \ - 'git get-tar-commit-id b.commitid && - test_cmp .git/$(git symbolic-ref HEAD) b.commitid' +test_expect_success 'git get-tar-commit-id' ' + git get-tar-commit-id actual && + git rev-parse HEAD >expect && + test_cmp expect actual +' test_expect_success 'git archive with --output, override inferred format' ' git archive --format=tar --output=d4.zip HEAD &&