mirror of https://github.com/actions/checkout
Compare commits
1 Commits
4a9ce15182
...
7355f96c61
| Author | SHA1 | Date |
|---|---|---|
|
|
7355f96c61 |
|
|
@ -41899,11 +41899,6 @@ async function getSource(settings) {
|
||||||
await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
|
await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
|
||||||
await git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
|
await git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
|
||||||
endGroup();
|
endGroup();
|
||||||
if (settings.lfs) {
|
|
||||||
startGroup('Checking out submodule LFS objects');
|
|
||||||
await git.submoduleForeach('git lfs checkout', settings.nestedSubmodules);
|
|
||||||
endGroup();
|
|
||||||
}
|
|
||||||
// Persist credentials
|
// Persist credentials
|
||||||
if (settings.persistCredentials) {
|
if (settings.persistCredentials) {
|
||||||
startGroup('Persisting credentials for submodules');
|
startGroup('Persisting credentials for submodules');
|
||||||
|
|
|
||||||
|
|
@ -294,15 +294,6 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
||||||
)
|
)
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
if (settings.lfs) {
|
|
||||||
core.startGroup('Checking out submodule LFS objects')
|
|
||||||
await git.submoduleForeach(
|
|
||||||
'git lfs checkout',
|
|
||||||
settings.nestedSubmodules
|
|
||||||
)
|
|
||||||
core.endGroup()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Persist credentials
|
// Persist credentials
|
||||||
if (settings.persistCredentials) {
|
if (settings.persistCredentials) {
|
||||||
core.startGroup('Persisting credentials for submodules')
|
core.startGroup('Persisting credentials for submodules')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue