]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - bin/rgit
Make App::Rgit::Config->new discover the root directory itself
[perl/modules/rgit.git] / bin / rgit
index 19558a3d85bbf66e8e1777c748e3ab8ce205e62a..040dae68b11f0305c1818648acdd793b69f2e3fc 100755 (executable)
--- a/bin/rgit
+++ b/bin/rgit
@@ -43,12 +43,9 @@ if (not defined $policy) {
 
 setpgrp 0, 0 if $Config{d_setpgrp};
 
-my $root = $ENV{GIT_DIR};
-$root = cwd unless defined $root;
-
 my $ar = App::Rgit->new(
  git    => undef, # Autodiscovery
- root   => $root,
+ root   => undef, # Autodiscovery
  cmd    => $cmd,
  args   => \@ARGV,
  policy => $policy,