to be passed on to stderr. Also fixes a potential bug, since git error
meesages were treated as if they came from git stdout.
- open STDERR, ">&STDOUT"
- or error("Cannot dup STDOUT: $!");
# Git commands want to be in wc.
chdir $config{srcdir}
or error("Cannot chdir to $config{srcdir}: $!");
# Git commands want to be in wc.
chdir $config{srcdir}
or error("Cannot chdir to $config{srcdir}: $!");
- ($error_handler || sub { })->("'@cmdline' failed: $!") if $?;
+ $error_handler->("'@cmdline' failed: $!") if $? && $error_handler;
return wantarray ? @lines : ($? == 0);
}
return wantarray ? @lines : ($? == 0);
}
it, and then the failing cgi choked on the new file when _it_ tried to
render it. Ensuring that the index file is loaded after taking the lock
will avoid this bug.
it, and then the failing cgi choked on the new file when _it_ tried to
render it. Ensuring that the index file is loaded after taking the lock
will avoid this bug.
+ * Fix strange stderr-hiding code in the git module, allow error messages
+ to be passed on to stderr. Also fixes a potential bug, since git error
+ meesages were treated as if they came from git stdout.
- -- Joey Hess <joeyh@debian.org> Wed, 10 Oct 2007 14:36:38 -0400
+ -- Joey Hess <joeyh@debian.org> Wed, 10 Oct 2007 19:23:40 -0400
ikiwiki (2.9) unstable; urgency=low
ikiwiki (2.9) unstable; urgency=low