This commit is contained in:
liyuchun
2022-02-23 09:57:23 +08:00
parent 462451b8fb
commit 0e4d44edf7
+3
View File
@@ -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');