Permalink
Browse files

Add a section that explains how to clone/update git submodules recurs…

…ively using a before_install
1 parent 11247cf commit a491a7cd1ca7a8f98676906420c6e8bdbc431dc4 @michaelklishin michaelklishin committed Mar 10, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 docs/user/build-configuration.md
@@ -108,6 +108,16 @@ If your project has native dependencies (for example, libxml or libffi) or needs
you can install packages via apt and even use 3rd-party apt repositories and PPAs. For more see dedicated sections later in this guide.
+### Updating Git Submodules
+
+If your project uses git submodules, use the following technique to clone them before dependencies installation:
+
+ before_install:
+ - git submodule update --init --recursive
+
+This will include nested submodules (submodules of submodules), in case there are any.
+
+
### Use Public URLs For Submodules
If your project uses git submodules, make sure you use public git URLs. For example, for Github instead of

0 comments on commit a491a7c

Please sign in to comment.