* Adjust git blame cmd for git repo.

This commit is contained in:
caoyanyi
2023-12-14 10:22:48 +08:00
parent bccbf0c705
commit 66da2f0643
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;