1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-05-12 05:01:18 +02:00
This commit is contained in:
Cosimo Streppone 2022-11-12 16:23:00 -05:00 committed by GitHub
commit d34d2679db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 7 deletions

6
dist/index.js vendored
View file

@ -7287,8 +7287,10 @@ class GitAuthHelper {
core.warning(`Failed to remove '${configKey}' from the git config`);
}
}
const pattern = regexpHelper.escape(configKey);
yield 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);
yield this.git.submoduleForeach(`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`, true);
}
});
}
}