diff --git a/lib/scm/gitlab.class.php b/lib/scm/gitlab.class.php index 564a0a4416..11e5e29c00 100644 --- a/lib/scm/gitlab.class.php +++ b/lib/scm/gitlab.class.php @@ -646,7 +646,7 @@ class gitlab $param = new stdclass(); $param->path = urldecode($path); - $param->ref_name = $this->branch; + $param->ref_name = $fromRevision ? $fromRevision : $this->branch; $fromDate = $this->getCommittedDate($fromRevision); $toDate = $this->getCommittedDate($toRevision); diff --git a/module/repo/control.php b/module/repo/control.php index ba3b05ac19..173c5c2f45 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -574,6 +574,7 @@ class repo extends control $this->scm->setEngine($repo); $log = $this->scm->log('', $revision, $revision); $log[0]->comment = $this->repo->replaceCommentLink($log[0]->comment); + $log[0]->commit = ''; $history = $this->dao->select('*')->from(TABLE_REPOHISTORY)->where('revision')->eq($log[0]->revision)->andWhere('repo')->eq($repoID)->fetch(); if($history)