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 <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
brian m. carlson committed
Jul 29, 2020 at 23:14 UTC
db00af977f7e0d043a4cb2bdc250f4a0d74c18a7
1 file changed
+1
-1
t/t8011-blame-split-file.sh
+1
-1
@@ -54,7 +54,7 @@ test_expect_success 'setup simulated porcelain' '
54
cat >read-porcelain.pl <<-\EOF
55
my $field = shift;
56
while (<>) {
57
- if (/^[0-9a-f]{40} /) {
57
+ if (/^[0-9a-f]{40,} /) {
58
flush();
59
$hash = $&;
60
} elsif (/^$field (.*)/) {