Skip to content

Commit

Permalink
Fix problems with initializing submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-gh committed May 24, 2015
1 parent 6123e3a commit af4bfa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = 'net.minecrell'
version = '0.4.2'
version = '0.4.3'
description = 'A Gradle plugin to manage patches for Git repositories'

sourceCompatibility = 1.6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class UpdateSubmodulesTask extends SubmoduleTask {
return
}

if (status.type == SubmoduleStatusType.MISSING) {
if (status.type == SubmoduleStatusType.MISSING || status.type == SubmoduleStatusType.UNINITIALIZED) {
submoduleInit().addPath(submodule).call()
} else if (status.type == SubmoduleStatusType.REV_CHECKED_OUT) {
logger.warn "Resetting submodule \"{}\" from {} back to {}", submodule, status.headId, status.indexId
Expand Down

0 comments on commit af4bfa0

Please sign in to comment.