From d79cf3728d9984e92e2bffd147d280a697b46fe6 Mon Sep 17 00:00:00 2001 From: Amitai Schlair Date: Fri, 4 Sep 2009 14:56:55 -0500 Subject: [PATCH] It's STDOUT we have to shut up for cvs, and $savedout has to be restored just so. --- IkiWiki/Plugin/cvs.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm index 60f5372eb..8409bebed 100644 --- a/IkiWiki/Plugin/cvs.pm +++ b/IkiWiki/Plugin/cvs.pm @@ -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; } -- 2.39.5