From: brian m. carlson Date: Sun, 25 Mar 2018 19:20:51 +0000 (+0000) Subject: t1507: abstract away SHA-1-specific constants X-Git-Tag: v2.18.0-rc0~148^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60e0dc0bd88750fc0a04b9c41dfa4616c131dd99;p=git t1507: abstract away SHA-1-specific constants Adjust the test so that it uses a variable consisting of the current HEAD instead of a hard-coded hash. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- diff --git a/t/t1507-rev-parse-upstream.sh b/t/t1507-rev-parse-upstream.sh index 2ce68cc277..93c77eac45 100755 --- a/t/t1507-rev-parse-upstream.sh +++ b/t/t1507-rev-parse-upstream.sh @@ -209,8 +209,9 @@ test_expect_success '@{u} works when tracking a local branch' ' test refs/heads/master = "$(full_name @{u})" ' +commit=$(git rev-parse HEAD) cat >expect <) Reflog message: branch: Created from HEAD Author: A U Thor @@ -224,7 +225,7 @@ test_expect_success 'log -g other@{u}' ' ' cat >expect <) Reflog message: branch: Created from HEAD Author: A U Thor