mirror of
https://code.forgejo.org/actions/checkout.git
synced 2024-11-24 04:29:16 +01:00
Fix: Don't remove auth if submodules are off
This commit is contained in:
parent
2541b1294d
commit
f2738ccb35
1 changed files with 6 additions and 4 deletions
|
@ -363,10 +363,12 @@ class GitAuthHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const pattern = regexpHelper.escape(configKey)
|
if (this.settings.submodules) {
|
||||||
await this.git.submoduleForeach(
|
const pattern = regexpHelper.escape(configKey)
|
||||||
`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`,
|
await this.git.submoduleForeach(
|
||||||
true
|
`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`,
|
||||||
|
true
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue