Skip to content

Commit

Permalink
Add a section that explains how to clone/update git submodules recurs…
Browse files Browse the repository at this point in the history
…ively using a before_install
  • Loading branch information
michaelklishin committed Mar 10, 2012
1 parent 11247cf commit a491a7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/user/build-configuration.md
Expand Up @@ -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. 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 ### Use Public URLs For Submodules


If your project uses git submodules, make sure you use public git URLs. For example, for Github instead of If your project uses git submodules, make sure you use public git URLs. For example, for Github instead of
Expand Down

0 comments on commit a491a7c

Please sign in to comment.