summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-09-25 17:10:16 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-09-25 17:10:16 +0000
commitc04f88ca91b7612c70bcae9c8a70a98d5bd46c6e (patch)
tree9d55772d49a77616e85955383936ee1174d4e9d0
parent4bc3852c2aeacef942b8e64e8ba5275ef8e43640 (diff)
parentc7aa7638729f13d3697da4fe1ffbe30b6a384a43 (diff)
Merge "[docs] Limit git submodule recurse to depth 1"
-rw-r--r--jjb/opnfvdocs/docs-rtd.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/jjb/opnfvdocs/docs-rtd.yaml b/jjb/opnfvdocs/docs-rtd.yaml
index fc99bd392..bfb9d63ec 100644
--- a/jjb/opnfvdocs/docs-rtd.yaml
+++ b/jjb/opnfvdocs/docs-rtd.yaml
@@ -84,9 +84,15 @@
if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
cd docs/submodules/$GERRIT_PROJECT
git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
+ cd -
else
git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
fi
+ if [ -d docs/subdmodules ]; then
+ for project in docs/submodules/*; do
+ cd $project && git submodule deinit -f . && cd -
+ done
+ fi
- shell: |
sudo -H pip install virtualenv
virtualenv $WORKSPACE/venv