From 0947d8447194774911af8171987baf768f5df082 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Tue, 22 Feb 2022 15:49:56 +0800 Subject: [PATCH] * Fix bug #19853. --- lib/scm/gitlab.class.php | 2 +- module/repo/control.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 79faaa27f5..4f66a6d7ee 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)