mirror of
https://github.com/actions/checkout.git
synced 2025-07-12 08:40:45 +00: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
|
@ -360,6 +360,7 @@ class GitCommandManager {
|
|||
|
||||
async submoduleStatus(): Promise<boolean> {
|
||||
const output = await this.execGit(['submodule', 'status'], true)
|
||||
core.debug(output.stdout)
|
||||
return output.exitCode === 0
|
||||
}
|
||||
|
||||
|
|
|
@ -84,6 +84,7 @@ export async function prepareExistingDirectory(
|
|||
// Check for submodules and delete any existing files if submodules are present
|
||||
if (!(await git.submoduleStatus())) {
|
||||
remove = true
|
||||
core.info('Bad Submodules found, removing existing files')
|
||||
}
|
||||
|
||||
// Clean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue