* Adjust git blame cmd for git repo.
This commit is contained in:
@@ -282,7 +282,7 @@ class Gitea
|
||||
|
||||
$path = ltrim($path, DIRECTORY_SEPARATOR);
|
||||
chdir($this->root);
|
||||
$list = execCmd(escapeCmd("$this->client blame -l $revision -- $path"), 'array');
|
||||
$list = execCmd(escapeCmd("$this->client blame -l -c $revision -- $path"), 'array');
|
||||
|
||||
$blames = array();
|
||||
$revLine = 0;
|
||||
|
||||
@@ -278,7 +278,7 @@ class Gogs
|
||||
|
||||
$path = ltrim($path, DIRECTORY_SEPARATOR);
|
||||
chdir($this->root);
|
||||
$list = execCmd(escapeCmd("$this->client blame -l --root $revision -- $path"), 'array');
|
||||
$list = execCmd(escapeCmd("$this->client blame -l -c $revision -- $path"), 'array');
|
||||
|
||||
$blames = array();
|
||||
$revLine = 0;
|
||||
|
||||
Reference in New Issue
Block a user