Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Git.pm: allow command_close_bidi_pipe to be called as method
[gitweb.git]
/
perl
/
Git.pm
diff --git
a/perl/Git.pm
b/perl/Git.pm
index 931047c51da22cddefe0eab08d0fdaa595daefef..bbb753a0ac2b4dbff8b618d25b3efbc42f9ea9e0 100644
(file)
--- a/
perl/Git.pm
+++ b/
perl/Git.pm
@@
-430,7
+430,7
@@
sub command_bidi_pipe {
sub command_close_bidi_pipe {
local $?;
- my ($
pid, $in, $out, $ctx) = @_
;
+ my ($
self, $pid, $in, $out, $ctx) = _maybe_self(@_)
;
foreach my $fh ($in, $out) {
unless (close $fh) {
if ($!) {