diff options
author | elijah <elijah@riseup.net> | 2013-02-23 20:53:33 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-23 20:53:33 -0800 |
commit | 4a3212ac4d3221c8ae91a64b2be4ccbcec5ede95 (patch) | |
tree | 1283787cb938c93a55ba4c0076454686c4b8883c /lib/leap_cli | |
parent | 330c856014130b599d85d90e2f943d23ab1efc19 (diff) | |
parent | 2e8e103f42a81c39058feace314a78667f8b316f (diff) |
Merge branch 'master' of ssh://leap.se/leap_cli
Diffstat (limited to 'lib/leap_cli')
-rw-r--r-- | lib/leap_cli/commands/deploy.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb index 024e8d0..5b1e4d5 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}" |