Skip to content

Commit

Permalink
* fix a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyidong committed Jun 16, 2015
1 parent 598ec01 commit 0022e3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions module/bug/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ public function getDataOfBugsPerBuild()
}
else
{
if(!isset($datas[$buildID])) $datas[$buildID] = new stdclass();
$datas[$buildID]->name = $buildID;
$datas[$buildID]->value = 1;
}
Expand Down
4 changes: 1 addition & 3 deletions module/git/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,9 @@ public function run()
$savedRevision = $this->getSavedRevision();
$this->printLog("start from revision $savedRevision");
$logs = $this->getRepoLogs($repo, $savedRevision);
if(empty($logs)) return false;

$this->printLog("get " . count($logs) . " logs");
if(empty($logs)) continue;

$this->printLog("get " . count($logs) . " logs");
$this->printLog('begin parsing logs');
$latestRevision = $logs[0]->revision;
foreach($logs as $log)
Expand Down
3 changes: 1 addition & 2 deletions module/svn/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ public function run()
$savedRevision = $this->getSavedRevision();
$this->printLog("start from revision $savedRevision");
$logs = $this->getRepoLogs($repo, $savedRevision);
if(empty($logs)) return false;
if(empty($logs)) continue;

$this->printLog("get " . count($logs) . " logs");

$this->printLog('begin parsing logs');
foreach($logs as $log)
{
Expand Down

0 comments on commit 0022e3f

Please sign in to comment.