X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FApp%2FRgit.pm;h=e4436039f20b16c02d0972da1da542358032c976;hb=00f4d1f6016748f8b4623d8ff32546069f763a95;hp=1d1ee0f1b697089470605ab2a1a3ffb1e21a9612;hpb=4c6f2bc56bc50a662b2c2625bcc012d4757f9abf;p=perl%2Fmodules%2Frgit.git diff --git a/lib/App/Rgit.pm b/lib/App/Rgit.pm index 1d1ee0f..e443603 100644 --- a/lib/App/Rgit.pm +++ b/lib/App/Rgit.pm @@ -15,11 +15,11 @@ App::Rgit - Backend that supports the rgit utility. =head1 VERSION -Version 0.02 +Version 0.04 =cut -our $VERSION = '0.02'; +our $VERSION = '0.04'; =head1 DESCRIPTION @@ -38,17 +38,20 @@ Creates a new L object that's bound to execute the command C<$cmd> on sub new { my ($class, %args) = &validate; my $config = App::Rgit::Config->new( - root => $args{root}, - git => $args{git}, + root => $args{root}, + git => $args{git}, + debug => $args{debug}, ); return unless defined $config; + my $command = App::Rgit::Command->new( + cmd => $args{cmd}, + args => $args{args}, + policy => $args{policy}, + ); + 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, ); }