* fix bug: cannot get mulitiple git logs.

This commit is contained in:
xia0ta0
2014-06-18 10:02:16 +08:00
parent 0337b3337f
commit fca6253f87
+2 -1
View File
@@ -96,6 +96,7 @@ class gitModel extends model
$this->printLog("start from revision $savedRevision");
$logs = $this->getRepoLogs($repo, $savedRevision);
$this->printLog("get " . count($logs) . " logs");
if(empty($logs)) continue;
$this->printLog('begin parsing logs');
$latestRevision = $logs[0]->revision;
@@ -253,7 +254,7 @@ class gitModel extends model
exec($cmd, $list, $return);
if(!$list and $return) die("Some error occers: \nThe command is $cmd\n");
if(!$list and !$return) exit;
if(!$list and !$return) return array();
/* Process logs. */
$logs = array();