mirror of
https://gitea.com/actions/checkout.git
synced 2026-07-22 15:46:55 +00:00
escape values passed to --unset (#2530)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user