From: Trevor Bramwell Date: Tue, 25 Sep 2018 17:10:16 +0000 (+0000) Subject: Merge "[docs] Limit git submodule recurse to depth 1" X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=commitdiff_plain;h=c04f88ca91b7612c70bcae9c8a70a98d5bd46c6e;hp=4bc3852c2aeacef942b8e64e8ba5275ef8e43640 Merge "[docs] Limit git submodule recurse to depth 1" --- 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