]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t6101: make hash size independent
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 29 Jul 2020 23:13:55 +0000 (23:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2020 16:16:46 +0000 (09:16 -0700)
Use $OID_REGEX instead of a hard-coded regular expression.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6101-rev-parse-parents.sh

index 7683e4a1142a6ee31a1f1fd51b774b19fc2c7401..7531262a5e33d8a650879bf3316251a1062d1dc3 100755 (executable)
@@ -34,7 +34,7 @@ test_expect_success 'setup' '
 '
 
 test_expect_success 'start is valid' '
-       git rev-parse start | grep "^[0-9a-f]\{40\}$"
+       git rev-parse start | grep "^$OID_REGEX$"
 '
 
 test_expect_success 'start^0' '