$gitret = $this->gitcmd("rev-list", "--max-count=1", $branch);
preg_match("#([a-z0-9]{40})#", $gitret, $match);
$newest_version = $match[1];
$deleted_files = array();
if(($current_version = $this->getConfig('version_'.$branch))) {
$gitret = $this->gitcmd("rev-list", "--max-count=1", $branch);
preg_match("#([a-z0-9]{40})#", $gitret, $match);
$newest_version = $match[1];
$deleted_files = array();
if(($current_version = $this->getConfig('version_'.$branch))) {