* Fix bug when view code file.
This commit is contained in:
@@ -280,7 +280,7 @@ class Gitea
|
||||
$blame['lines'] = 1;
|
||||
$blame['content'] = strpos($matches[6], ' ') === false ? $matches[6] : substr($matches[6], 1);
|
||||
|
||||
$log = $this->log('', $matches[1], '', 1);
|
||||
$log = $this->log('', '', '', 1);
|
||||
$blame['message'] = $log[0]->comment;
|
||||
|
||||
$revision = $matches[1];
|
||||
|
||||
@@ -266,7 +266,7 @@ class GitRepo
|
||||
$blame['lines'] = 1;
|
||||
$blame['content'] = strpos($matches[6], ' ') === false ? $matches[6] : substr($matches[6], 1);
|
||||
|
||||
$log = $this->log('', $matches[1], '', 1);
|
||||
$log = $this->log('', '', '', 1);
|
||||
$blame['message'] = $log[0]->comment;
|
||||
|
||||
$revision = $matches[1];
|
||||
|
||||
@@ -280,7 +280,7 @@ class Gogs
|
||||
$blame['lines'] = 1;
|
||||
$blame['content'] = strpos($matches[6], ' ') === false ? $matches[6] : substr($matches[6], 1);
|
||||
|
||||
$log = $this->log('', $matches[1], '', 1);
|
||||
$log = $this->log('', '', '', 1);
|
||||
$blame['message'] = $log[0]->comment;
|
||||
|
||||
$revision = $matches[1];
|
||||
|
||||
@@ -311,7 +311,7 @@ class Subversion
|
||||
$blame['lines'] = 1;
|
||||
$blame['content'] = $content[$blame['line'] - 1];
|
||||
|
||||
$log = $this->log('', $blame['revision'], 'HEAD', 1);
|
||||
$log = $this->log('', 0, 'HEAD', 1);
|
||||
$blame['message'] = $log[0]->comment;
|
||||
|
||||
$revision = $blame['revision'];
|
||||
|
||||
Reference in New Issue
Block a user