From: Han-Wen Nienhuys Date: Mon, 31 May 2021 16:56:19 +0000 (+0000) Subject: t5601: read HEAD using rev-parse X-Git-Tag: v2.33.0-rc0~67^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd8468ef000ec115d8e49d8b7063e30764592b0f;p=thirdparty%2Fgit.git t5601: read HEAD using rev-parse Signed-off-by: Han-Wen Nienhuys Reviewed-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 329ae599fd..7223372c76 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -305,7 +305,8 @@ test_expect_success 'clone from original with relative alternate' ' test_expect_success 'clone checking out a tag' ' git clone --branch=some-tag src dst.tag && GIT_DIR=src/.git git rev-parse some-tag >expected && - test_cmp expected dst.tag/.git/HEAD && + GIT_DIR=dst.tag/.git git rev-parse HEAD >actual && + test_cmp expected actual && GIT_DIR=dst.tag/.git git config remote.origin.fetch >fetch.actual && echo "+refs/heads/*:refs/remotes/origin/*" >fetch.expected && test_cmp fetch.expected fetch.actual