[PATCH v5 20/39] t8011: make hash size independent
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Jul 28, 2020, 23:34 UTC
- Message-ID
- <20200728233446.3066485-21-sandals@crustytoothpaste.net>
- In-Reply-To
- <20200728233446.3066485-1-sandals@crustytoothpaste.net>
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> --- t/t8011-blame-split-file.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 (.*)/) {