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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed May 21, 2018 at 02:01 UTC 0b2c4af4b667165cc23330db07693865b55eb927
1 file changed +2 -1
t/t4208-log-magic-pathspec.sh
+2 -1
@@ -45,8 +45,9 @@ test_expect_success 'git log -- :' '
45 '
46
47 test_expect_success 'git log HEAD -- :/' '
48 + initial=$(git rev-parse --short HEAD^) &&
49 cat >expected <<-EOF &&
49 - 24b24cf initial
50 + $initial initial
51 EOF
52 (cd sub && git log --oneline HEAD -- :/ >../actual) &&
53 test_cmp expected actual