Skip to content

Commit

Permalink
t5607: 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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
bk2204 authored and gitster committed Feb 7, 2020
1 parent 48c10cc commit 88ed241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t5607-clone-bundle.sh
Expand Up @@ -64,7 +64,7 @@ test_expect_success 'ridiculously long subject in boundary' '
test -s heads &&
git fetch long-subject-bundle.bdl &&
sed -n "/^-/{p;q;}" long-subject-bundle.bdl >boundary &&
grep "^-[0-9a-f]\\{40\\} " boundary
grep "^-$OID_REGEX " boundary
'

test_expect_success 'prerequisites with an empty commit message' '
Expand Down

0 comments on commit 88ed241

Please sign in to comment.