Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/index.js2
-rw-r--r--src/git-command-manager.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/dist/index.js b/dist/index.js
index b319687..06ae5d2 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -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;
}
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