mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-21 09:10:16 +03:00
Add mock implementation for new function submoduleStatus
This commit is contained in:
parent
39cfb844ff
commit
d12863bffd
5 changed files with 10 additions and 0 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -7686,6 +7686,7 @@ class GitCommandManager {
|
|||
submoduleStatus() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const output = yield this.execGit(['submodule', 'status'], true);
|
||||
core.debug(output.stdout);
|
||||
return output.exitCode === 0;
|
||||
});
|
||||
}
|
||||
|
@ -9445,6 +9446,7 @@ function prepareExistingDirectory(git, repositoryPath, repositoryUrl, clean, ref
|
|||
// Check for submodules and delete any existing files if submodules are present
|
||||
if (!(yield git.submoduleStatus())) {
|
||||
remove = true;
|
||||
core.info('Bad Submodules found, removing existing files');
|
||||
}
|
||||
// Clean
|
||||
if (clean) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue