This commit is contained in:
wangyidong
2020-03-25 10:57:14 +08:00
parent 65945b7e9c
commit 4388bf9c7b
+1 -1
View File
@@ -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();