Speed up the clone, because we don't need the commits, just the result

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2018-05-02 15:42:14 +02:00
parent 749522020d
commit a8d031258c

View File

@@ -9,5 +9,5 @@ NC_BRANCH="${1:-master}"
if [ -d server/.git ]; then
cd server && git fetch && git checkout $NC_BRANCH && git reset --hard origin/$NC_BRANCH
else
git clone https://github.com/nextcloud/server server
git clone https://github.com/nextcloud/server server --depth 1
fi;