summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh2
1 files changed, 1 insertions, 1 deletions
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.