escape values passed to --unset (#2530)

This commit is contained in:
Aiqiao Yan authored and GitHub committed 2026-07-17 13:44:40 -04:00
1 parent 12cd2235ef
commit 28802689a1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -35913,7 +35913,7 @@ class GitCommandManager {
else {
args.push(globalConfig ? '--global' : '--local');
}
args.push('--unset', configKey, configValue);
args.push('--unset', configKey, regexp_helper_escape(configValue));
const output = await this.execGit(args, true);
return output.exitCode === 0;
}