Browse code

only clone docs from gh-pages branch if they aren't there

Allow the caller of this script to decide which commit
from the gh-pages branch should be used to build the docs.
This also avoid excessive repeated git clones during development.

Change-Id: I3e58eef0ac03b15903c06d5632c0eb41413db02c

Adam Spiers authored on 2013/10/25 01:40:13
Showing 1 changed files
... ...
@@ -91,8 +91,9 @@ fi
91 91
 # Assumption is we are now in the DevStack repo workspace to be processed
92 92
 
93 93
 # Pull the latest docs branch from devstack.org repo
94
-rm -rf docs || true
95
-git clone -b gh-pages $GH_PAGES_REPO docs
94
+if ! [ -d docs ]; then
95
+    git clone -b gh-pages $GH_PAGES_REPO docs
96
+fi
96 97
 
97 98
 # Build list of scripts to process
98 99
 FILES=""