* Adjust code
This commit is contained in:
@@ -646,7 +646,7 @@ class gitlab
|
||||
|
||||
$param = new stdclass();
|
||||
$param->path = urldecode($path);
|
||||
$param->ref_name = $toRevision ? $toRevision : $this->branch;
|
||||
$param->ref_name = ($toRevision != 'HEAD' and $toRevision) ? $toRevision : $this->branch;
|
||||
|
||||
$fromDate = $this->getCommittedDate($fromRevision);
|
||||
$toDate = $this->getCommittedDate($toRevision);
|
||||
|
||||
@@ -882,7 +882,7 @@ class repoModel extends model
|
||||
$scm = $this->app->loadClass('scm');
|
||||
$scm->setEngine($repo);
|
||||
|
||||
$logs = $scm->log('', $lastInDB ? $lastInDB->revision : 0, '');
|
||||
$logs = $scm->log('', $lastInDB ? $lastInDB->revision : 0);
|
||||
if(empty($logs)) return false;
|
||||
|
||||
/* Process logs. */
|
||||
|
||||
Reference in New Issue
Block a user