chiark / gitweb /
dgit-repos-server: clear GIT_DIR and GIT_PREFIX (which we maybe inherit from client...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Jan 2014 19:14:08 +0000 (19:14 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:05 +0000 (18:29 +0000)
dgit-repos-server

index 8dd36ae..6e1ec02 100755 (executable)
@@ -514,6 +514,9 @@ sub argval () {
 sub parseargsdispatch () {
     die unless @ARGV;
 
+    delete $ENV{'GIT_DIR'}; # if not run via ssh, our parent git process
+    delete $ENV{'GIT_PREFIX'}; # sets these and they mess things up
+
     if ($ENV{'DGIT_DRS_DEBUG'}) {
        $debug='=';
        open DEBUG, ">&STDERR" or die $!;