Skip to content

Commit ad1cc19

Browse files
committed
A git object can also be of zero size.
1 parent d7fa562 commit ad1cc19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Git/PurePerl/Loose.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ sub get_object {
2222

2323
my $compressed = $filename->slurp( iomode => '<:raw' );
2424
my $data = uncompress($compressed);
25-
my ( $kind, $size, $content ) = $data =~ /^(\w+) (\d+)\0(.+)$/s;
25+
my ( $kind, $size, $content ) = $data =~ /^(\w+) (\d+)\0(.*)$/s;
2626
return ( $kind, $size, $content );
2727
}
2828

0 commit comments

Comments
 (0)