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>
This commit is contained in:
parent
5c024287ad
commit
0b2c4af4b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user