* adjust show log.

This commit is contained in:
wangyidong
2020-03-09 09:44:31 +08:00
parent aa07506688
commit e7b5d2d0a8
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -95,7 +95,11 @@ class gitModel extends model
$lastInDB = $this->repo->getLatestCommit($repoID);
/* Ignore unsynced branch. */
if(empty($lastInDB)) continue;
if(empty($lastInDB))
{
$this->printLog("Please init repo {$repo->name}");
continue;
}
$commits = $repo->commits;
$version = $lastInDB->commit;