From: Han-Wen Nienhuys via GitGitGadget Date: Mon, 19 Apr 2021 10:52:52 GMT Subject: [PATCH 07/18] t5000: inspect HEAD using git-rev-parse Message-ID: <79843c0d572765a3004968235391b5ae17365d56.1618829583.git.gitgitgadget@gmail.com> In-Reply-To: From: Han-Wen Nienhuys Signed-off-by: Han-Wen Nienhuys --- t/t5000-tar-tree.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 7204799a0b52..472fec4ee64a 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -233,9 +233,10 @@ test_expect_success \ 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' + '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 && -- gitgitgadget