From: Bjørn Erik Pedersen Date: Sat, 23 Sep 2017 08:11:20 +0000 (+0200) Subject: Allow the pull-docs script to pull other than master X-Git-Tag: v0.28~14 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9436f0b0c31d2df49647e301ab3d6e2053b356b8;p=brevno-suite%2Fhugo Allow the pull-docs script to pull other than master --- diff --git a/pull-docs.sh b/pull-docs.sh index afe8fce8..b8850530 100755 --- a/pull-docs.sh +++ b/pull-docs.sh @@ -1,5 +1,7 @@ #!/bin/bash +HUGO_DOCS_BRANCH="${HUGO_DOCS_BRANCH-master}" + # We may extend this to also push changes in the other direction, but this is the most important step. -git subtree pull --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash +git subtree pull --prefix=docs/ https://github.com/gohugoio/hugoDocs.git ${HUGO_DOCS_BRANCH} --squash