Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/git-command-manager.ts
diff options
context:
space:
mode:
authorAiqiao Yan <55104035+aiqiaoy@users.noreply.github.com>2026-07-17 13:44:40 -0400
committerGitHub <noreply@github.com>2026-07-17 13:44:40 -0400
commit57fadabbbeb3a20058fa65b9a5b2975ba617855d (patch)
tree7e2412104c78b12cdd45ffabd152b7219bc1e701 /src/git-command-manager.ts
parent352b30b96cc74c8ce95cc4c682fadf6a89d9eb63 (diff)
escape values passed to --unset (#2530)
Diffstat (limited to 'src/git-command-manager.ts')
-rw-r--r--src/git-command-manager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index 36cdb47..8431658 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -510,7 +510,7 @@ class GitCommandManager {
} else {
args.push(globalConfig ? '--global' : '--local')
}
- args.push('--unset', configKey, configValue)
+ args.push('--unset', configKey, regexpHelper.escape(configValue))
const output = await this.execGit(args, true)
return output.exitCode === 0