Change to start in IPC::Run for RT#52658
Tomas Doran [Sat, 19 Dec 2009 14:35:34 +0000 (14:35 +0000)]
Changes
lib/Gitalist/Git/Util.pm

diff --git a/Changes b/Changes
index c50d5eb..72fa0db 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 This file documents the revision history for Perl extension Gitalist.
 
+    - Switch to IPC::Run::start for streamed mode, fixing RT#52658
+      and the tests with FreeBSD.
+
 0.000004 2009-12-19
     - Support being able to pass a list of repositories to view via
       configuration, rather than having a static directory.
index adbb5bb..9638b8c 100644 (file)
@@ -3,7 +3,7 @@ use MooseX::Declare;
 class Gitalist::Git::Util {
     use File::Which;
     use Git::PurePerl;
-    use IPC::Run qw(run);
+    use IPC::Run qw(run start);
     use Symbol qw(geniosym);
     use MooseX::Types::Common::String qw/NonEmptySimpleStr/;
 
@@ -52,7 +52,7 @@ EOR
         unshift @args, ('--git-dir' => $self->gitdir)
             if $self->has_repository;
 #        print STDERR 'RUNNING: ', $self->_git, qq[ @args], $/;
-        run [$self->_git, @args],
+        start [$self->_git, @args],
             '<pipe', $in,
             '>pipe', $out,
             '2>pipe', $err