]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - lib/App/Rgit/Command/Each.pm
Move the fake root repository from the Command to the Config object
[perl/modules/rgit.git] / lib / App / Rgit / Command / Each.pm
index 155e9744ac37ffa1417b22537f3e294072c1f44c..c313dc815b760250378c0b95a591a3e827418aac 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->root_repo->chdir;
  return $status;
 }