1
0
Fork 0

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) 2016-03-15 21:53:41 -04:00
parent d346ec2cf7
commit 8161d6f7f7
1 changed files with 1 additions and 1 deletions

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.