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},
);