portsync: clone faster adding depth 1

This commit is contained in:
Luis
2023-03-14 06:55:18 +00:00
parent fdc5578ecd
commit 642e4aff85

View File

@@ -93,7 +93,7 @@ sync_repo() {
echo "fetching ports: $1"
# cloning ports repository
git clone -q -b $branch $url $tmprepo || {
git clone --depth 1 -q -b $branch $url $tmprepo || {
echo " failed sync repo"
exit 1
}