From bb2a51b521900772c1699f46de04453512f32b31 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 5 Dec 2014 16:53:04 -0500 Subject: [PATCH] trusty installer: full depth clone option Signed-off-by: Bill Erickson --- installer/trusty/eg_trusty_installer.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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"; -- 2.11.0