X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=blobdiff_plain;f=lib%2FApp%2FRgit.pm;h=38e4c38ab289f8c7813a4c0143d03af80c10cf7d;hp=1d1ee0f1b697089470605ab2a1a3ffb1e21a9612;hb=6106b02a51da37eadcc29155ae4d51c07fff61ce;hpb=2d737d5df0b318de7cdc2d4c7c225d76f4890038 diff --git a/lib/App/Rgit.pm b/lib/App/Rgit.pm index 1d1ee0f..38e4c38 100644 --- a/lib/App/Rgit.pm +++ b/lib/App/Rgit.pm @@ -42,13 +42,14 @@ sub new { git => $args{git}, ); return unless defined $config; + my $command = App::Rgit::Command->new( + cmd => $args{cmd}, + args => $args{args}, + ); + return unless defined $command; $class->SUPER::new( config => $config, - command => App::Rgit::Command->new( - cmd => $args{cmd}, - args => $args{args}, - repos => $config->repos, - ) + command => $command, ); }