* Modify tag get.

This commit is contained in:
caoyanyi
2022-07-27 08:48:08 +08:00
parent 26cf62842d
commit 24d032fd92
2 changed files with 16 additions and 2 deletions
+8 -1
View File
@@ -21,7 +21,14 @@ class Gitea
$this->client = $client;
$this->root = rtrim($root, DIRECTORY_SEPARATOR);
$this->branch = isset($_COOKIE['repoBranch']) ? 'origin/' . $_COOKIE['repoBranch'] : '';
$branch = isset($_COOKIE['repoBranch']) ? $_COOKIE['repoBranch'] : '';
if($branch)
{
$branches = $this->branch();
if(isset($branches[$branch])) $branch = "origin/$branch";
}
$this->branch = $branch;
chdir($this->root);
exec("{$this->client} config core.quotepath false");