mirror of
https://github.com/actions/checkout.git
synced 2026-01-03 17:32:21 +08:00
Compare commits
4 Commits
82cf7e4b7f
...
5be8773cec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5be8773cec | ||
|
|
110353ee6c | ||
|
|
51ffdcdb1d | ||
|
|
f2738ccb35 |
@@ -364,11 +364,13 @@ class GitAuthHelper {
|
||||
}
|
||||
}
|
||||
|
||||
const pattern = regexpHelper.escape(configKey)
|
||||
await this.git.submoduleForeach(
|
||||
// wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
|
||||
`sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`,
|
||||
true
|
||||
)
|
||||
if (this.settings.submodules) {
|
||||
const pattern = regexpHelper.escape(configKey)
|
||||
await this.git.submoduleForeach(
|
||||
// wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
|
||||
`sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`,
|
||||
true
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user