summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-06-29 11:29:30 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-06-29 11:29:30 -0700
commit689648262f01456c3cc0bf1c16cfe2e097559049 (patch)
tree91e01db4969cc3dd541271c6ab4c7c04ce327ddf
parent3e43dc11027f15c6859d4dc5f3677de42020c9fc (diff)
downloadansible-modules-core-travis-docs.tar.gz
Fix for doc formatter recursing into the checkout dirtravis-docs
-rwxr-xr-xtest-docs.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/test-docs.sh b/test-docs.sh
index 28d71dd5..8cfa66c3 100755
--- a/test-docs.sh
+++ b/test-docs.sh
@@ -1,9 +1,12 @@
#!/bin/sh
+set -x
+CHECKOUT_DIR=".ansible-checkout"
MOD_REPO="$1"
-git clone https://github.com/ansible/ansible ansible-checkout
-cd ansible-checkout
+# Hidden file to avoid the module_formatter recursing into the checkout
+git clone https://github.com/ansible/ansible "$CHECKOUT_DIR"
+cd "$CHECKOUT_DIR"
git submodule update --init
rm -rf "lib/ansible/modules/$MOD_REPO"
ln -s ../ "lib/ansible/modules/$MOD_REPO"