summaryrefslogtreecommitdiff
path: root/t/t8011-blame-split-file.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-07-29 23:14:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-30 16:16:47 (GMT)
commitdb00af977f7e0d043a4cb2bdc250f4a0d74c18a7 (patch)
treebd31748636004d02fa0fd4efcf7ad6437d6cc28c /t/t8011-blame-split-file.sh
parent7187eb1e6a81b6b8539c1487285ba50621d2a4d3 (diff)
downloadgit-db00af977f7e0d043a4cb2bdc250f4a0d74c18a7.zip
git-db00af977f7e0d043a4cb2bdc250f4a0d74c18a7.tar.gz
git-db00af977f7e0d043a4cb2bdc250f4a0d74c18a7.tar.bz2
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>
Diffstat (limited to 't/t8011-blame-split-file.sh')
-rwxr-xr-xt/t8011-blame-split-file.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t8011-blame-split-file.sh b/t/t8011-blame-split-file.sh
index 8311250..bdda0c0 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 (.*)/) {