mirror of
https://github.com/cuberite/cuberite.git
synced 2025-01-08 11:57:39 +08:00
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:
parent
d346ec2cf7
commit
8161d6f7f7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user