aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2024-03-25 16:53:48 +1100
committerTheo Buehler <tb@openbsd.org>2024-03-25 16:53:48 +1100
commit17b504f94d9dcc2177c20703990f3667829aa1e6 (patch)
tree6a37a7d5dd6ce3108966d416cbf4771eeb06d643
parent28b9191f3c39fce13e788293a2ac6f5a07a430cf (diff)
parent9646391f9212ee35c60882d6173a86a685ac9bd3 (diff)
downloadportable-17b504f94d9dcc2177c20703990f3667829aa1e6.tar.gz
portable-17b504f94d9dcc2177c20703990f3667829aa1e6.tar.bz2
portable-17b504f94d9dcc2177c20703990f3667829aa1e6.zip
Land #1026 - use shallow clones by default
-rwxr-xr-xupdate.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/update.sh b/update.sh
index 95d852c..c154ad7 100755
--- a/update.sh
+++ b/update.sh
@@ -6,11 +6,9 @@ openbsd_branch=`cat OPENBSD_BRANCH`
6# pull in latest upstream code 6# pull in latest upstream code
7echo "pulling upstream openbsd source" 7echo "pulling upstream openbsd source"
8if [ ! -d openbsd ]; then 8if [ ! -d openbsd ]; then
9 if [ -z "$LIBRESSL_GIT" ]; then 9 LIBRESSL_GIT_OPTIONS="${LIBRESSL_GIT_OPTIONS:- --depth=8}"
10 git clone https://github.com/libressl/openbsd.git 10 LIBRESSL_GIT="${LIBRESSL_GIT:- https://github.com/libressl}"
11 else 11 git clone $LIBRESSL_GIT_OPTIONS $LIBRESSL_GIT/openbsd
12 git clone $LIBRESSL_GIT/openbsd
13 fi
14fi 12fi
15 13
16# pull either the latest or if on a tag, the matching tag 14# pull either the latest or if on a tag, the matching tag