mirror of
https://github.com/nextcloud/documentation.git
synced 2025-12-12 07:29:47 +07:00
make build/get-server-sources.sh make fetch at --depth 1
Signed-off-by: Private Maker <privatemaker@posteo.net>
This commit is contained in:
@@ -13,9 +13,9 @@ printf "\n"
|
|||||||
if [ -d server/.git ]; then
|
if [ -d server/.git ]; then
|
||||||
cd server
|
cd server
|
||||||
git remote set-branches --add origin $NC_BRANCH
|
git remote set-branches --add origin $NC_BRANCH
|
||||||
git fetch
|
git fetch --depth 1
|
||||||
git checkout $NC_BRANCH
|
git checkout $NC_BRANCH
|
||||||
git reset --hard origin/$NC_BRANCH
|
git reset --hard origin/$NC_BRANCH
|
||||||
else
|
else
|
||||||
git clone https://github.com/nextcloud/server server --depth 1 --branch $NC_BRANCH
|
git clone https://github.com/nextcloud/server server --depth 1 --single-branch --branch $NC_BRANCH
|
||||||
fi;
|
fi;
|
||||||
|
|||||||
Reference in New Issue
Block a user