Permalink
Browse files

'gitolite mirror' needs to set exit code on push failure

  • Loading branch information...
sitaramc committed Nov 21, 2012
1 parent 2018267 commit cd838411faede4819f5c00c77ded802d059294f9
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/commands/mirror
View
@@ -53,10 +53,11 @@ if ( $cmd eq 'push' ) {
my $errors = 0;
for (`git push --mirror $host:$repo 2>&1`) {
+ $errors = 1 if $?;
print STDERR "$_" if -t STDERR or exists $ENV{GL_USER};
chomp;
if (/FATAL/) {
- $errors++;
+ $errors = 1;
gl_log( 'mirror', $_ );
} else {
trace( 1, "mirror: $_" );

0 comments on commit cd83841

Please sign in to comment.