From: Bill Erickson Date: Fri, 5 Dec 2014 21:53:04 +0000 (-0500) Subject: trusty installer: full depth clone option X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bb2a51b521900772c1699f46de04453512f32b31;p=working%2Frandom.git trusty installer: full depth clone option Signed-off-by: Bill Erickson --- diff --git a/installer/trusty/eg_trusty_installer.sh b/installer/trusty/eg_trusty_installer.sh index a1ca22f51..b2454d560 100755 --- a/installer/trusty/eg_trusty_installer.sh +++ b/installer/trusty/eg_trusty_installer.sh @@ -14,7 +14,9 @@ # GNU General Public License for more details. # ----------------------------------------------------------------------- -while getopts aystbdp option +CLONE_DEPTH="--depth 1" + +while getopts aystbdpc option do case "${option}" in @@ -24,6 +26,7 @@ do t) LIVETEST=1;; b) NO_BROWSER=1;; d) NO_DATABASE=1;; + c) CLONE_DEPTH=""; p) PG_92=1;; esac done @@ -197,8 +200,8 @@ function cloning_git_repos { date OSRF_COMMAND=" cd /home/opensrf; - git clone --depth 1 --branch $OPENSRF_BRANCH $OPENSRF_REPO OpenSRF; - git clone --depth 1 --branch $EVERGREEN_BRANCH $EVERGREEN_REPO Evergreen; + git clone $CLONE_DEPTH --branch $OPENSRF_BRANCH $OPENSRF_REPO OpenSRF; + git clone $CLONE_DEPTH --branch $EVERGREEN_BRANCH $EVERGREEN_REPO Evergreen; " rm -rf /home/opensrf/Evergreen /home/opensrf/OpenSRF su - opensrf sh -c "$OSRF_COMMAND";