mirror of
https://github.com/actions/checkout.git
synced 2026-07-18 12:00:05 +08:00
escape values passed to --unset
This commit is contained in:
parent
12cd2235ef
commit
f43caed52e
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue