@matheusbsbs / matheus-bagliano / commits / bed118d6bb
Fork 0

Force Activestate Perl to tie git command pipe handle to a handle class

Otherwise it tries to tie it to a scalar and complains about missing method. Dunno why, may be ActiveState brokenness again. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Acked-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>

Alex Riesen committed Jan 22, 2007 at 17:16 UTC bed118d6bb6dee92180469466dfa265265678dd4
1 file changed +7 -1
perl/Git.pm
+7 -1
@@ -742,7 +742,13 @@ sub _command_common_pipe {
742 # warn 'ignoring STDERR option - running w/ ActiveState';
743 $direction eq '-|' or
744 die 'input pipe for ActiveState not implemented';
745 - tie ($fh, 'Git::activestate_pipe', $cmd, @args);
745 + # the strange construction with *ACPIPE is just to
746 + # explain the tie below that we want to bind to
747 + # a handle class, not scalar. It is not known if
748 + # it is something specific to ActiveState Perl or
749 + # just a Perl quirk.
750 + tie (*ACPIPE, 'Git::activestate_pipe', $cmd, @args);
751 + $fh = *ACPIPE;
752
753 } else {
754 my $pid = open($fh, $direction);