]> sipb.mit.edu Git - ikiwiki.git/commitdiff
It's STDOUT we have to shut up for cvs, and $savedout has to be
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>
Fri, 4 Sep 2009 19:56:55 +0000 (14:56 -0500)
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>
Fri, 4 Sep 2009 19:56:55 +0000 (14:56 -0500)
restored just so.

IkiWiki/Plugin/cvs.pm

index 60f5372eb01813017245f28fe16785b7051e3d9b..8409bebedb4cd4bb26b4119c674a673ec38a5886 100644 (file)
@@ -105,10 +105,10 @@ sub cvs_runcvs(@) {
 
        chdir $config{srcdir} || error("Cannot chdir to $config{srcdir}: $!");
 
-       open(my $savederr, ">&STDERR");
-       open(STDERR, ">", "/dev/null");
+       open(my $savedout, ">&STDOUT");
+       open(STDOUT, ">", "/dev/null");
        my $ret = system(@cmd);
-       open(STDERR, ">$savederr");
+       open(STDOUT, ">&", $savedout);
 
        return ($ret == 0) ? 1 : 0;
 }