* Modify code pull.

This commit is contained in:
caoyanyi
2022-07-26 16:33:10 +08:00
parent 228898dd1b
commit 3e484a6087
+5 -1
View File
@@ -537,7 +537,11 @@ class Gitea
$count = $count == 0 ? '' : "-n $count";
chdir($this->root);
if($branch) execCmd(escapeCmd("$this->client checkout $branch"), 'array');
if($branch)
{
execCmd(escapeCmd("$this->client checkout $branch"));
execCmd(escapeCmd("$this->client pull"));
}
$list = execCmd(escapeCmd("$this->client log $count $revision -- ./"), 'array');
$commits = $this->parseLog($list);