Skip to content

Commit db00af9

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Reviewed-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7187eb1 commit db00af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t8011-blame-split-file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test_expect_success 'setup simulated porcelain' '
5454
cat >read-porcelain.pl <<-\EOF
5555
my $field = shift;
5656
while (<>) {
57-
if (/^[0-9a-f]{40} /) {
57+
if (/^[0-9a-f]{40,} /) {
5858
flush();
5959
$hash = $&;
6060
} elsif (/^$field (.*)/) {

0 commit comments

Comments
 (0)