summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Kluenter <ckluente@thoughtworks.com>2016-07-12 09:17:47 +0200
committerChristoph Kluenter <ckluente@thoughtworks.com>2016-07-12 10:56:03 +0200
commit9c9629981f23cc9d9f4f60577ae58406c20b793f (patch)
treee06ba22b1284dd17225921b7619d0be8bd453a52 /lib
parentd05f00bf405e9c0f4f6431ba923e7b4001de9cb6 (diff)
only update git submodules only if not subrepo
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/commands/deploy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb
index d26b9905..a09fddbe 100644
--- a/lib/leap_cli/commands/deploy.rb
+++ b/lib/leap_cli/commands/deploy.rb
@@ -286,7 +286,7 @@ module LeapCli
# repository.
#
def init_submodules
- return unless is_git_directory?(Path.platform)
+ return unless is_git_directory?(Path.platform) && !is_git_subrepo?(Path.platform)
Dir.chdir Path.platform do
assert_run! "git submodule sync"
statuses = assert_run! "git submodule status"