Skip to content

Commit 08fbc5d

Browse files
bk2204gitster
authored andcommitted
t6101: make hash size independent
Use $OID_REGEX instead of a hard-coded regular expression. Signed-off-by: brian m. carlson <[email protected]> Reviewed-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 11b6961 commit 08fbc5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t6101-rev-parse-parents.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test_expect_success 'setup' '
3434
'
3535

3636
test_expect_success 'start is valid' '
37-
git rev-parse start | grep "^[0-9a-f]\{40\}$"
37+
git rev-parse start | grep "^$OID_REGEX$"
3838
'
3939

4040
test_expect_success 'start^0' '

0 commit comments

Comments
 (0)