From 3e484a6087ae51e36da3d9e2a6d93dca97dfaeb1 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 26 Jul 2022 16:33:10 +0800 Subject: [PATCH] * Modify code pull. --- lib/scm/gitea.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/scm/gitea.class.php b/lib/scm/gitea.class.php index 0aee01bfbf..f84ed08dbb 100644 --- a/lib/scm/gitea.class.php +++ b/lib/scm/gitea.class.php @@ -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);