summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Mewett <tom.mewett@codethink.co.uk>2019-12-10 12:06:18 +0000
committerTom Mewett <tom.mewett@codethink.co.uk>2019-12-13 16:49:02 +0000
commit7fe2bb4bd2f28f49567100eaf388685e53ad4bf3 (patch)
tree49928a955ada4a73ecba4bc279db9805b509f607
parentd48b380e525c47b9a580b884e4125bdc2c1a7cbf (diff)
downloadbuildstream-tmewett/recursive-git.tar.gz
sources/git.py: Document that checkout-submodules is recursivetmewett/recursive-git
-rw-r--r--src/buildstream/plugins/sources/git.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/buildstream/plugins/sources/git.py b/src/buildstream/plugins/sources/git.py
index 5e6834979..d04ccfe1b 100644
--- a/src/buildstream/plugins/sources/git.py
+++ b/src/buildstream/plugins/sources/git.py
@@ -57,6 +57,7 @@ git - stage files from a git repository
ref: d63cbb6fdc0bbdadc4a1b92284826a6d63a7ebcd
# Optionally specify whether submodules should be checked-out.
+ # This is done recursively, as with `git clone --recurse-submodules`.
# If not set, this will default to 'True'
checkout-submodules: True
@@ -66,12 +67,15 @@ git - stage files from a git repository
# especially handy when used with project defined aliases which
# can be redefined at a later time.
# You may also explicitly specify whether to check out this
- # submodule. If 'checkout' is set, it will override
- # 'checkout-submodules' with the value set below.
+ # submodule. If 'checkout' is set, it will control whether to
+ # checkout that submodule and recurse into it. It defaults to the
+ # value of 'checkout-submodules'.
submodules:
plugins/bar:
url: upstream:bar.git
checkout: True
+ plugins/bar/quux:
+ checkout: False
plugins/baz:
url: upstream:baz.git
checkout: False