From 0e4d44edf7805f417ad3be765c34bf8f07dd725a Mon Sep 17 00:00:00 2001 From: liyuchun Date: Wed, 23 Feb 2022 09:57:23 +0800 Subject: [PATCH] * Fix bug #19866. --- module/repo/control.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/repo/control.php b/module/repo/control.php index 173c5c2f45..971caab9a3 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -835,6 +835,9 @@ class repo extends control $entry = $this->repo->decodePath($path); $repo = $this->repo->getRepoByID($repoID); + $fromRevision = str_replace('*', '-', $fromRevision); + $toRevision = str_replace('*', '-', $toRevision); + $this->commonAction($repoID); $this->scm->setEngine($repo); $content = $type == 'file' ? $this->scm->cat($entry, $fromRevision) : $this->scm->diff($entry, $fromRevision, $toRevision, 'patch');