Merge branch 'master' into zenops_41
This commit is contained in:
@@ -178,7 +178,10 @@ class gitModel extends model
|
||||
if($printLog) $this->printLog("parsing log {$log->revision}");
|
||||
if($printLog) $this->printLog("comment is\n----------\n" . trim($log->msg) . "\n----------");
|
||||
|
||||
$objects = $this->repo->parseComment($log->msg);
|
||||
$objects = $this->repo->parseComment($log->msg);
|
||||
$lastVersion = $version;
|
||||
$version = $this->repo->saveOneCommit($repo->id, $log, $version, $branch);
|
||||
|
||||
if($objects)
|
||||
{
|
||||
if($printLog) $this->printLog('extract' .
|
||||
@@ -186,7 +189,7 @@ class gitModel extends model
|
||||
' task:' . join(' ', $objects['tasks']) .
|
||||
' bug:' . join(',', $objects['bugs']));
|
||||
|
||||
$this->repo->saveAction2PMS($objects, $log, $this->repoRoot, $repo->encoding, 'git', $accountPairs);
|
||||
if($lastVersion != $version) $this->repo->saveAction2PMS($objects, $log, $this->repoRoot, $repo->encoding, 'git', $accountPairs);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -202,7 +205,6 @@ class gitModel extends model
|
||||
if(strpos($log->msg, $comment) !== false) $this->loadModel('compile')->createByJob($job->id);
|
||||
}
|
||||
}
|
||||
$version = $this->repo->saveOneCommit($repo->id, $log, $version, $branch);
|
||||
$commits += count($logs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user