update.sh: use shallow clone to spare time/bandwidth

This commit is contained in:
Viktor Szakats
2024-03-20 17:52:50 +00:00
parent 55f21a399f
commit 24bb326b72

View File

@@ -7,9 +7,9 @@ openbsd_branch=`cat OPENBSD_BRANCH`
echo "pulling upstream openbsd source"
if [ ! -d openbsd ]; then
if [ -z "$LIBRESSL_GIT" ]; then
git clone https://github.com/libressl/openbsd.git
git clone --depth=8 https://github.com/libressl/openbsd.git
else
git clone $LIBRESSL_GIT/openbsd
git clone --depth=8 $LIBRESSL_GIT/openbsd
fi
fi