Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/git-directory-helper.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/git-directory-helper.ts')
-rw-r--r--src/git-directory-helper.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/git-directory-helper.ts b/src/git-directory-helper.ts
index 2979e97..fcd4b60 100644
--- a/src/git-directory-helper.ts
+++ b/src/git-directory-helper.ts
@@ -81,6 +81,12 @@ export async function prepareExistingDirectory(
}
core.endGroup()
+ // 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
if (clean) {
core.startGroup('Cleaning the repository')