X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FApp%2FRgit%2FCommand%2FEach.pm;h=ba42b1269398d020fc48ce72f9b4e8ada43c74e9;hb=f00c02ec880d4c182584fc4f046df634df67401f;hp=2981904f8095b11963d54c258fec1b906bbbfa3f;hpb=19bee8f647bfe6c94c5cb3cf6a60d7a43cbca222;p=perl%2Fmodules%2Frgit.git diff --git a/lib/App/Rgit/Command/Each.pm b/lib/App/Rgit/Command/Each.pm index 2981904..ba42b12 100644 --- a/lib/App/Rgit/Command/Each.pm +++ b/lib/App/Rgit/Command/Each.pm @@ -11,11 +11,11 @@ App::Rgit::Command::Each - Class for commands to execute for each repository. =head1 VERSION -Version 0.01 +Version 0.02 =cut -our $VERSION = '0.01'; +our $VERSION = '0.02'; =head1 DESCRIPTION @@ -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; }