$current_branch = str_replace(array("\r", "\n"), array("", ""), $this->gitcmd("rev-parse", "--abbrev-ref", "HEAD"));
if($current_branch != $branch)
$this->gitcmd("checkout", $branch);
- echo $this->gitcmd("pull");
+ $this->gitcmd("pull");
$gitret = $this->gitcmd("rev-list", "--max-count=1", $branch);
preg_match("#([a-z0-9]{40})#", $gitret, $match);
$newest_version = $match[1];