mirror of
https://github.com/actions/checkout.git
synced 2024-11-15 11:54:30 +08:00
Fix: Don't remove auth if submodules are off
This commit is contained in:
parent
2541b1294d
commit
f2738ccb35
@ -363,10 +363,12 @@ class GitAuthHelper {
|
||||
}
|
||||
}
|
||||
|
||||
const pattern = regexpHelper.escape(configKey)
|
||||
await this.git.submoduleForeach(
|
||||
`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(
|
||||
`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`,
|
||||
true
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user