]> git.vpit.fr Git - perl/modules/rgit.git/commitdiff
Really use the root in the Config constructor
authorVincent Pit <vince@profvince.com>
Mon, 6 Oct 2008 14:58:20 +0000 (16:58 +0200)
committerVincent Pit <vince@profvince.com>
Mon, 6 Oct 2008 14:58:20 +0000 (16:58 +0200)
lib/App/Rgit/Config.pm

index 8044f57c15b9a398d7953b6c593539becbdb021b..c59578f519511041d62b753c4fa52ee5047f75ef 100644 (file)
@@ -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},
  );