Merge pull request #756 from nextcloud/bugfix/noid/checkout-without-history

Speed up the clone, because we don't need the commits, just the result
This commit is contained in:
Julius Härtl 2018-05-02 21:31:17 +02:00 committed by GitHub
commit d86a3cefa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;