1 parent 12cd223 commit 2880268Copy full SHA for 2880268
2 files changed
dist/index.js
@@ -35913,7 +35913,7 @@ class GitCommandManager {
35913
else {
35914
args.push(globalConfig ? '--global' : '--local');
35915
}
35916
- args.push('--unset', configKey, configValue);
+ args.push('--unset', configKey, regexp_helper_escape(configValue));
35917
const output = await this.execGit(args, true);
35918
return output.exitCode === 0;
35919
src/git-command-manager.ts
@@ -510,7 +510,7 @@ class GitCommandManager {
510
} else {
511
args.push(globalConfig ? '--global' : '--local')
512
513
- args.push('--unset', configKey, configValue)
+ args.push('--unset', configKey, regexpHelper.escape(configValue))
514
515
const output = await this.execGit(args, true)
516
return output.exitCode === 0
0 commit comments