Unverified Commit 28802689 authored by Aiqiao Yan's avatar Aiqiao Yan Committed by GitHub
Browse files

escape values passed to --unset (#2530)

parent 12cd2235
Loading
Loading
Loading
Loading
+1 −1
Changes for dist/index.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
    }
+1 −1
Changes for src/git-command-manager.ts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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