From 0dc3ad99d21d6456f395165fa27967e4866f329b Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Sun, 25 Mar 2018 19:20:48 +0000 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- t/t1300-repo-config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index 4f8e6f5fde..dc7e6c2e77 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -1587,10 +1587,10 @@ test_expect_success '--show-origin stdin with file include' ' ' test_expect_success !MINGW '--show-origin blob' ' - cat >expect <<-\EOF && - blob:a9d9f9e555b5c6f07cbe09d3f06fe3df11e09c08 user.custom=true - EOF 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 && test_cmp expect output '