Skip to content

Commit

Permalink
t6101: make hash size independent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bk2204 authored and gitster committed Jul 30, 2020
1 parent 11b6961 commit 08fbc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t6101-rev-parse-parents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' '
Expand Down

0 comments on commit 08fbc5d

Please sign in to comment.