t1300: abstract away SHA-1-specific constants
Adjust the test so that it uses the computed blob value instead of hard-coding a hash. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
06d18bdf86
commit
0dc3ad99d2
@ -1587,10 +1587,10 @@ test_expect_success '--show-origin stdin with file include' '
|
|||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success !MINGW '--show-origin blob' '
|
test_expect_success !MINGW '--show-origin blob' '
|
||||||
cat >expect <<-\EOF &&
|
|
||||||
blob:a9d9f9e555b5c6f07cbe09d3f06fe3df11e09c08 user.custom=true
|
|
||||||
EOF
|
|
||||||
blob=$(git hash-object -w "$CUSTOM_CONFIG_FILE") &&
|
blob=$(git hash-object -w "$CUSTOM_CONFIG_FILE") &&
|
||||||
|
cat >expect <<-EOF &&
|
||||||
|
blob:$blob user.custom=true
|
||||||
|
EOF
|
||||||
git config --blob=$blob --show-origin --list >output &&
|
git config --blob=$blob --show-origin --list >output &&
|
||||||
test_cmp expect output
|
test_cmp expect output
|
||||||
'
|
'
|
||||||
|
Loading…
Reference in New Issue
Block a user