]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - lib/App/Rgit/Command/Each.pm
We need to chdir back to the cwd when we are over, so revert root_repo back to cwd_repo
[perl/modules/rgit.git] / lib / App / Rgit / Command / Each.pm
index 155e9744ac37ffa1417b22537f3e294072c1f44c..ba42b1269398d020fc48ce72f9b4e8ada43c74e9 100644 (file)
@@ -35,13 +35,14 @@ It implements :
 
 sub run {
  my $self = shift;
+ my $conf = shift;
  my $status = 0;
- for (@{$self->repos}) {
+ for (@{$conf->repos}) {
   $_->chdir or next;
-  $status = $_->run($_[0], @{$self->args});
+  $status = $_->run($conf, @{$self->args});
   last if $status;
  }
- $self->cwd_as_repo->chdir;
+ $conf->cwd_repo->chdir;
  return $status;
 }