]> git.vpit.fr Git - perl/modules/rgit.git/commitdiff
LAST has priority over REDO
authorVincent Pit <vince@profvince.com>
Tue, 7 Oct 2008 17:57:37 +0000 (19:57 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 7 Oct 2008 17:57:37 +0000 (19:57 +0200)
lib/App/Rgit/Command/Each.pm

index 7996f3d1795f515ad3f9057368f1128c95f06f73..c042b71fa5f7ae56de1acab11089388c670e7f29 100644 (file)
@@ -44,11 +44,11 @@ sub run {
   $_->chdir or next;
   $status = $_->run($conf, @{$self->args});
   $code = $self->report($conf, $_, $status) unless defined $code;
+  last if $code & LAST;
   if ($code & REDO) {
    undef $code; # Don't save it, that would be very dumb
    redo;
   }
-  last if $code & LAST;
   undef $code unless $code & SAVE;
  }
  $conf->cwd_repo->chdir;