diff options
author | Theo Buehler <tb@openbsd.org> | 2024-03-25 16:53:48 +1100 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-03-25 16:53:48 +1100 |
commit | 17b504f94d9dcc2177c20703990f3667829aa1e6 (patch) | |
tree | 6a37a7d5dd6ce3108966d416cbf4771eeb06d643 | |
parent | 28b9191f3c39fce13e788293a2ac6f5a07a430cf (diff) | |
parent | 9646391f9212ee35c60882d6173a86a685ac9bd3 (diff) | |
download | portable-17b504f94d9dcc2177c20703990f3667829aa1e6.tar.gz portable-17b504f94d9dcc2177c20703990f3667829aa1e6.tar.bz2 portable-17b504f94d9dcc2177c20703990f3667829aa1e6.zip |
Land #1026 - use shallow clones by default
-rwxr-xr-x | update.sh | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -6,11 +6,9 @@ openbsd_branch=`cat OPENBSD_BRANCH` | |||
6 | # pull in latest upstream code | 6 | # pull in latest upstream code |
7 | echo "pulling upstream openbsd source" | 7 | echo "pulling upstream openbsd source" |
8 | if [ ! -d openbsd ]; then | 8 | if [ ! -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 | ||
14 | fi | 12 | fi |
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 |