* Adjust code

This commit is contained in:
zenggang
2022-03-09 01:11:39 +00:00
parent 515dd085c4
commit 8eaba29e5f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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. */