From: brian m. carlson Date: Wed, 29 Jul 2020 23:14:09 +0000 (+0000) Subject: t8011: make hash size independent X-Git-Tag: v2.29.0-rc0~178^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db00af977f7e0d043a4cb2bdc250f4a0d74c18a7;p=thirdparty%2Fgit.git t8011: make hash size independent Allow lines which start with either a 40- or 64-character hex object ID, to allow for both SHA-1 and SHA-256. Signed-off-by: brian m. carlson Reviewed-by: Eric Sunshine Signed-off-by: Junio C Hamano --- diff --git a/t/t8011-blame-split-file.sh b/t/t8011-blame-split-file.sh index 831125047b..bdda0c03fe 100755 --- a/t/t8011-blame-split-file.sh +++ b/t/t8011-blame-split-file.sh @@ -54,7 +54,7 @@ test_expect_success 'setup simulated porcelain' ' cat >read-porcelain.pl <<-\EOF my $field = shift; while (<>) { - if (/^[0-9a-f]{40} /) { + if (/^[0-9a-f]{40,} /) { flush(); $hash = $&; } elsif (/^$field (.*)/) {