From 24bb326b72218486fbae858bbbf4f4eb1039caeb Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 20 Mar 2024 17:52:50 +0000 Subject: update.sh: use shallow clone to spare time/bandwidth --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 95d852c..21a3682 100755 --- a/update.sh +++ b/update.sh @@ -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 -- cgit v1.2.3-55-g6feb From 9646391f9212ee35c60882d6173a86a685ac9bd3 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 22 Mar 2024 08:44:46 +0000 Subject: update.sh: add LIBRESSL_GIT_OPTIONS --- update.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/update.sh b/update.sh index 21a3682..c154ad7 100755 --- a/update.sh +++ b/update.sh @@ -6,11 +6,9 @@ openbsd_branch=`cat OPENBSD_BRANCH` # pull in latest upstream code echo "pulling upstream openbsd source" if [ ! -d openbsd ]; then - if [ -z "$LIBRESSL_GIT" ]; then - git clone --depth=8 https://github.com/libressl/openbsd.git - else - git clone --depth=8 $LIBRESSL_GIT/openbsd - fi + LIBRESSL_GIT_OPTIONS="${LIBRESSL_GIT_OPTIONS:- --depth=8}" + LIBRESSL_GIT="${LIBRESSL_GIT:- https://github.com/libressl}" + git clone $LIBRESSL_GIT_OPTIONS $LIBRESSL_GIT/openbsd fi # pull either the latest or if on a tag, the matching tag -- cgit v1.2.3-55-g6feb