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>
This commit is contained in:
parent
11b6961f8b
commit
08fbc5d0b2
@ -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' '
|
||||
|
Loading…
Reference in New Issue
Block a user