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>
brian m. carlson committed
Mar 25, 2018 at 19:20 UTC
0dc3ad99d21d6456f395165fa27967e4866f329b
1 file changed
+3
-3
t/t1300-repo-config.sh
+3
-3
@@ -1587,10 +1587,10 @@ test_expect_success '--show-origin stdin with file include' '
1587
'
1588
1589
test_expect_success !MINGW '--show-origin blob' '
1590
- cat >expect <<-\EOF &&
1591
- blob:a9d9f9e555b5c6f07cbe09d3f06fe3df11e09c08 user.custom=true
1592
- EOF
1590
blob=$(git hash-object -w "$CUSTOM_CONFIG_FILE") &&
1591
+ cat >expect <<-EOF &&
1592
+ blob:$blob user.custom=true
1593
+ EOF
1594
git config --blob=$blob --show-origin --list >output &&
1595
test_cmp expect output
1596
'