From: brian m. carlson Date: Sat, 21 Dec 2019 19:49:22 +0000 (+0000) Subject: t4204: make hash size independent X-Git-Tag: v2.26.0-rc0~93^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a1bcb251bf77ce76e19b54fc9ad85f8a4b92ee4;p=thirdparty%2Fgit.git t4204: make hash size independent Use $OID_REGEX instead of a hard-coded regular expression. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- diff --git a/t/t4204-patch-id.sh b/t/t4204-patch-id.sh index 0288c17ec6..8ff8bd84c7 100755 --- a/t/t4204-patch-id.sh +++ b/t/t4204-patch-id.sh @@ -25,7 +25,7 @@ test_expect_success 'setup' ' test_expect_success 'patch-id output is well-formed' ' git log -p -1 | git patch-id >output && - grep "^[a-f0-9]\{40\} $(git rev-parse HEAD)$" output + grep "^$OID_REGEX $(git rev-parse HEAD)$" output ' #calculate patch id. Make sure output is not empty.