From bccbf0c705493081049823166f0503f462eea4fb Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 14 Dec 2023 09:40:50 +0800 Subject: [PATCH] * Adjust git blame cmd for gogs repo. --- lib/scm/gogs.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scm/gogs.class.php b/lib/scm/gogs.class.php index cd377b3274..d217c56f6c 100644 --- a/lib/scm/gogs.class.php +++ b/lib/scm/gogs.class.php @@ -278,7 +278,7 @@ class Gogs $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 --root $revision -- $path"), 'array'); $blames = array(); $revLine = 0;