diff options
| author | Aiqiao Yan <55104035+aiqiaoy@users.noreply.github.com> | 2026-07-17 13:44:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-17 13:44:40 -0400 |
| commit | 57fadabbbeb3a20058fa65b9a5b2975ba617855d (patch) | |
| tree | 7e2412104c78b12cdd45ffabd152b7219bc1e701 /src | |
| parent | 352b30b96cc74c8ce95cc4c682fadf6a89d9eb63 (diff) | |
escape values passed to --unset (#2530)
Diffstat (limited to 'src')
| -rw-r--r-- | src/git-command-manager.ts | 2 |
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 |
