From 4388bf9c7bbf14285e012e4bf5a5e845ff0677a4 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 25 Mar 2020 10:57:14 +0800 Subject: [PATCH] * fix bug #3038. --- module/git/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/git/model.php b/module/git/model.php index 4859b96eb8..c813506c2c 100644 --- a/module/git/model.php +++ b/module/git/model.php @@ -86,6 +86,7 @@ class gitModel extends model if(!$this->setRepo($repo)) return false; $branches = $this->repo->getBranches($repo); + $commits = $repo->commits; foreach($branches as $branch) { $this->printLog("sync branch $branch logs."); @@ -101,7 +102,6 @@ class gitModel extends model continue; } - $commits = $repo->commits; $version = $lastInDB->commit; $logs = $this->repo->getUnsyncCommits($repo); $objects = array();