From 8161d6f7f7dbf8585ca3599ebb24d6973899c21f Mon Sep 17 00:00:00 2001 From: "Mingye Wang (Arthur2e5)" Date: Tue, 15 Mar 2016 21:53:41 -0400 Subject: Shallow clone to the correct branch Shallow clones are faster, and we always want the correct branch to be cloned.. --- compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.sh b/compile.sh index 43b5fa337..166edea54 100755 --- a/compile.sh +++ b/compile.sh @@ -196,7 +196,7 @@ echo " --- Downloading Cuberite's source code from the $BRANCH branch..." if [ ! -d cuberite ]; then # Git: Clone. echo " --- Looks like your first run, cloning the whole code..." - git clone https://github.com/cuberite/cuberite.git + git clone --depth 1 https://github.com/cuberite/cuberite.git -b "$BRANCH" cd cuberite else # Git: Fetch. -- cgit v1.2.3