From 95150a5d8568700efd00e80e100c67a3e2bead24 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 7 May 2019 19:42:11 +0200 Subject: [PATCH] Clone twenty instead of only one commit when installing Pi-hole. This ensures that we clone at least one tagged commit in case we need to push changes to master. Signed-off-by: DL6ER --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index ed5d5f3c..5cb4e5cc 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -413,7 +413,7 @@ make_repo() { rm -rf "${directory}" fi # Clone the repo and return the return code from this command - git clone -q --depth 1 "${remoteRepo}" "${directory}" &> /dev/null || return $? + git clone -q --depth 20 "${remoteRepo}" "${directory}" &> /dev/null || return $? # Show a colored message showing it's status printf "%b %b %s\\n" "${OVER}" "${TICK}" "${str}" # Always return 0? Not sure this is correct