t6101: make hash size independent
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>
brian m. carlson committed
Jul 29, 2020 at 23:13 UTC
08fbc5d0b2cae442e167f5a9bfdca7a80083ff79
1 file changed
+1
-1
t/t6101-rev-parse-parents.sh
+1
-1
@@ -34,7 +34,7 @@ test_expect_success 'setup' '
34
'
35
36
test_expect_success 'start is valid' '
37
- git rev-parse start | grep "^[0-9a-f]\{40\}$"
37
+ git rev-parse start | grep "^$OID_REGEX$"
38
'
39
40
test_expect_success 'start^0' '