From: brian m. carlson Date: Mon, 21 May 2018 02:01:46 +0000 (+0000) Subject: t4208: abstract away SHA-1-specific constants X-Git-Tag: v2.18.0-rc0~3^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0b2c4af4b667165cc23330db07693865b55eb927?ds=inline;hp=--cc t4208: abstract away SHA-1-specific constants Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- 0b2c4af4b667165cc23330db07693865b55eb927 diff --git a/t/t4208-log-magic-pathspec.sh b/t/t4208-log-magic-pathspec.sh index a1705f70cf..62f335b2d9 100755 --- a/t/t4208-log-magic-pathspec.sh +++ b/t/t4208-log-magic-pathspec.sh @@ -45,8 +45,9 @@ test_expect_success 'git log -- :' ' ' test_expect_success 'git log HEAD -- :/' ' + initial=$(git rev-parse --short HEAD^) && cat >expected <<-EOF && - 24b24cf initial + $initial initial EOF (cd sub && git log --oneline HEAD -- :/ >../actual) && test_cmp expected actual