} else
$argstr .= " ".escapeshellarg($arg);
}
- $gitcmd = 'git '.escapeshellarg('--git-dir='.$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;
}
$deleted_files = array();
if(($current_version = $this->getConfig('version_'.$branch))) {
- echo $current_version . " == " . $newest_version;
if($current_version == $newest_version)
return;
else {
$this->updateBranch($active_branch, $dir);
}
include_once($dir.$file);
- } else {
- include_once($this->localdir.$file);
+ die();
}
}