[PATCH v3 10/22] t5000: inspect HEAD using git-rev-parse
From: Han-Wen Nienhuys via GitGitGadget <hidden>
Date: 2021-05-31 17:40:07
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Han-Wen Nienhuys via GitGitGadget <hidden>
Date: 2021-05-31 17:40:07
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Han-Wen Nienhuys <redacted> Signed-off-by: Han-Wen Nienhuys <redacted> Reviewed-by: Ævar Arnfjörð Bjarmason <redacted> --- t/t5000-tar-tree.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index 8c5867b6c8ae..2c88d1c15962 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.tar >b.commitid && - test_cmp .git/$(git symbolic-ref HEAD) b.commitid' +test_expect_success 'git get-tar-commit-id' ' + git get-tar-commit-id <b.tar >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