Shallow clone to the correct branch

Shallow clones are faster, and we always want the correct branch
to be cloned..
This commit is contained in:
Mingye Wang (Arthur2e5) committed 2016-03-15 22:01:29 -04:00
1 parent d346ec2cf7
commit 8161d6f7f7
1 file changed
+1 -1
+1 -1
View File
@@ -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.