From: Vincent Pit Date: Mon, 6 Oct 2008 14:58:20 +0000 (+0200) Subject: Really use the root in the Config constructor X-Git-Tag: v0.03~9 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=commitdiff_plain;h=f39707f985871239ac340a2ac2b84f3c36d6d224 Really use the root in the Config constructor --- diff --git a/lib/App/Rgit/Config.pm b/lib/App/Rgit/Config.pm index 8044f57..c59578f 100644 --- a/lib/App/Rgit/Config.pm +++ b/lib/App/Rgit/Config.pm @@ -46,10 +46,10 @@ sub new { return unless defined $args{git} and -x $args{git}; my $conf = 'App::Rgit::Config::Default'; eval "require $conf; 1" or croak "Couldn't load $conf: $@"; - my $r = App::Rgit::Repository->new(fake => 1); + my $r = App::Rgit::Repository->new(dir => $root, fake => 1); return unless defined $r; $conf->SUPER::new( - root => $args{root}, + root => $root, root_repo => $r, git => $args{git}, );