@matheusbsbs / matheus-bagliano / commits / 7a1bcb251b
Fork 0

t4204: make hash size independent

Use $OID_REGEX instead of a hard-coded regular expression. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Dec 21, 2019 at 19:49 UTC 7a1bcb251bf77ce76e19b54fc9ad85f8a4b92ee4
1 file changed +1 -1
t/t4204-patch-id.sh
+1 -1
@@ -25,7 +25,7 @@ test_expect_success 'setup' '
25
26 test_expect_success 'patch-id output is well-formed' '
27 git log -p -1 | git patch-id >output &&
28 - grep "^[a-f0-9]\{40\} $(git rev-parse HEAD)$" output
28 + grep "^$OID_REGEX $(git rev-parse HEAD)$" output
29 '
30
31 #calculate patch id. Make sure output is not empty.