]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5607: make hash size independent
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 7 Feb 2020 00:52:50 +0000 (00:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Feb 2020 19:07:30 +0000 (11:07 -0800)
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>
t/t5607-clone-bundle.sh

index b7a3fdf02dfb4096133d1aca8de412d907ea921b..9108ff6fbd6f52d9df6b9ec52226a71ced8fdc06 100755 (executable)
@@ -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' '