From 57fadabbbeb3a20058fa65b9a5b2975ba617855d Mon Sep 17 00:00:00 2001 From: Aiqiao Yan <55104035+aiqiaoy@users.noreply.github.com> Date: Fri, 17 Jul 2026 13:44:40 -0400 Subject: escape values passed to --unset (#2530) --- src/git-command-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/git-command-manager.ts') 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 -- cgit v1.2.3