From a491a7cd1ca7a8f98676906420c6e8bdbc431dc4 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Sat, 10 Mar 2012 20:20:20 +0400 Subject: [PATCH] Add a section that explains how to clone/update git submodules recursively using a before_install --- docs/user/build-configuration.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/user/build-configuration.md b/docs/user/build-configuration.md index 782ca52a..0b740b63 100644 --- a/docs/user/build-configuration.md +++ b/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