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
| ... | ... |
@@ -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="" |