diff options
author | Amitai Schlair <schmonz@magnetic-babysitter.(none)> | 2009-09-04 14:56:55 -0500 |
---|---|---|
committer | Amitai Schlair <schmonz@magnetic-babysitter.(none)> | 2009-09-04 14:56:55 -0500 |
commit | d79cf3728d9984e92e2bffd147d280a697b46fe6 (patch) | |
tree | 1b1c5bd73c53a4b57d2531570590dff2e0335deb /IkiWiki | |
parent | 9de742bb0013d653c1efc3393bf13730e8f0b93d (diff) | |
download | ikiwiki-d79cf3728d9984e92e2bffd147d280a697b46fe6.tar ikiwiki-d79cf3728d9984e92e2bffd147d280a697b46fe6.tar.gz |
It's STDOUT we have to shut up for cvs, and $savedout has to be
restored just so.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/cvs.pm | 6 |
1 files 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; } |