Skip to content

Commit af4bfa0

Browse files
committed
Fix problems with initializing submodule
1 parent 6123e3a commit af4bfa0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
}
1313

1414
group = 'net.minecrell'
15-
version = '0.4.2'
15+
version = '0.4.3'
1616
description = 'A Gradle plugin to manage patches for Git repositories'
1717

1818
sourceCompatibility = 1.6

src/main/groovy/net/minecrell/gitpatcher/task/UpdateSubmodulesTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UpdateSubmodulesTask extends SubmoduleTask {
3838
return
3939
}
4040

41-
if (status.type == SubmoduleStatusType.MISSING) {
41+
if (status.type == SubmoduleStatusType.MISSING || status.type == SubmoduleStatusType.UNINITIALIZED) {
4242
submoduleInit().addPath(submodule).call()
4343
} else if (status.type == SubmoduleStatusType.REV_CHECKED_OUT) {
4444
logger.warn "Resetting submodule \"{}\" from {} back to {}", submodule, status.headId, status.indexId

0 commit comments

Comments
 (0)