Skip to content

Commit 452d36b

Browse files
amenonsengitster
authored andcommitted
Fix hash slice syntax error
Signed-off-by: Abhijit Menon-Sen <ams@toroid.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 108c2aa commit 452d36b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

perl/Git.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,8 @@ sub _close_hash_and_insert_object {
840840

841841
my @vars = map { 'hash_object_' . $_ } qw(pid in out ctx);
842842

843-
command_close_bidi_pipe($self->{@vars});
844-
delete $self->{@vars};
843+
command_close_bidi_pipe(@$self{@vars});
844+
delete @$self{@vars};
845845
}
846846

847847
=item cat_blob ( SHA1, FILEHANDLE )
@@ -929,8 +929,8 @@ sub _close_cat_blob {
929929

930930
my @vars = map { 'cat_blob_' . $_ } qw(pid in out ctx);
931931

932-
command_close_bidi_pipe($self->{@vars});
933-
delete $self->{@vars};
932+
command_close_bidi_pipe(@$self{@vars});
933+
delete @$self{@vars};
934934
}
935935

936936
=back

0 commit comments

Comments
 (0)