aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/leap_cli/commands/deploy.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb
index 115f06c..b5595f0 100644
--- a/lib/leap_cli/commands/deploy.rb
+++ b/lib/leap_cli/commands/deploy.rb
@@ -96,9 +96,10 @@ module LeapCli
def init_submodules
Dir.chdir Path.platform do
+ assert_run! "git submodule sync"
statuses = assert_run! "git submodule status"
statuses.strip.split("\n").each do |status_line|
- if status_line =~ /^-/
+ if status_line =~ /^[\+-]/
submodule = status_line.split(' ')[1]
log "Updating submodule #{submodule}"
assert_run! "git submodule update --init #{submodule}"