Skip to content

Commit 0dc3ad9

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 06d18bd commit 0dc3ad9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t1300-repo-config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,10 +1587,10 @@ test_expect_success '--show-origin stdin with file include' '
15871587
'
15881588

15891589
test_expect_success !MINGW '--show-origin blob' '
1590-
cat >expect <<-\EOF &&
1591-
blob:a9d9f9e555b5c6f07cbe09d3f06fe3df11e09c08 user.custom=true
1592-
EOF
15931590
blob=$(git hash-object -w "$CUSTOM_CONFIG_FILE") &&
1591+
cat >expect <<-EOF &&
1592+
blob:$blob user.custom=true
1593+
EOF
15941594
git config --blob=$blob --show-origin --list >output &&
15951595
test_cmp expect output
15961596
'

0 commit comments

Comments
 (0)