From: brian m. carlson Date: Fri, 7 Feb 2020 00:52:50 +0000 (+0000) Subject: t5607: make hash size independent X-Git-Tag: v2.26.0-rc0~44^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88ed241a7eff7699a21c6868ef0682879f8a0dec;p=thirdparty%2Fgit.git t5607: make hash size independent Use $OID_REGEX instead of a hard-coded regular expression. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- diff --git a/t/t5607-clone-bundle.sh b/t/t5607-clone-bundle.sh index b7a3fdf02d..9108ff6fbd 100755 --- a/t/t5607-clone-bundle.sh +++ b/t/t5607-clone-bundle.sh @@ -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' '