fixed last commit
authorpk910 <philipp@zoelle1.de>
Sun, 6 Oct 2013 01:13:03 +0000 (03:13 +0200)
committerpk910 <philipp@zoelle1.de>
Sun, 6 Oct 2013 01:13:03 +0000 (03:13 +0200)
GITManagedWebpage.class.php

index 481bf143ecafcfea7fe91ae9ec2bc06cece07a0e..3a76edcec7cca0f9722b56633d86dd92f339c5f5 100644 (file)
@@ -90,7 +90,7 @@ class GITManagedWebpage {
             } else
                 $argstr .= " ".escapeshellarg($arg);
         }
             } else
                 $argstr .= " ".escapeshellarg($arg);
         }
-        $gitcmd = 'git '.escapeshellarg('--git-dir='.$this->workdir.'repository/.git').' '.escapeshellarg('--work-tree='.$this->workdir.'repository/.git').$argstr;
+        $gitcmd = 'git '.escapeshellarg('--git-dir='.$this->workdir.'repository/.git').' '.escapeshellarg('--work-tree='.$this->workdir.'repository').$argstr;
         $output = shell_exec($gitcmd);
         return $output;
     }
         $output = shell_exec($gitcmd);
         return $output;
     }