* finish task #3383.

This commit is contained in:
wangyidong
2017-12-13 13:38:46 +08:00
parent 391ac047d9
commit 22f4518437
6 changed files with 50 additions and 8 deletions
+4
View File
@@ -32,7 +32,9 @@ class git extends control
*/
public function diff($path, $revision)
{
if(isset($_GET['repoUrl'])) $path = $this->get->repoUrl;
$path = helper::safe64Decode($path);
$this->view->path = $path;
$this->view->revision = $revision;
$this->view->diff = $this->git->diff($path, $revision);
@@ -50,7 +52,9 @@ class git extends control
*/
public function cat($path, $revision)
{
if(isset($_GET['repoUrl'])) $path = $this->get->repoUrl;
$path = helper::safe64Decode($path);
$this->view->path = $path;
$this->view->revision = $revision;
$this->view->code = $this->git->cat($path, $revision);