]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - lib/App/Rgit.pm
Don't store the repos in the command, so that no search happen for Once commands
[perl/modules/rgit.git] / lib / App / Rgit.pm
index 1d1ee0f1b697089470605ab2a1a3ffb1e21a9612..38e4c38ab289f8c7813a4c0143d03af80c10cf7d 100644 (file)
@@ -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,
  );
 }