aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2026-03-04 11:28:41 +0100
committerTheo Buehler <tb@openbsd.org>2026-03-04 11:28:41 +0100
commit47c332a802e83b3baa8aa9f98e397ffc14ef668b (patch)
treed1b304e231d73e97be55d05719bcd14a878ac0d3
parent2fa8b0da90a99d04ec9d12b932a824056bd321d3 (diff)
parent43a1f7c7e6578bc38d130b235d75916e5e58f335 (diff)
downloadportable-47c332a802e83b3baa8aa9f98e397ffc14ef668b.tar.gz
portable-47c332a802e83b3baa8aa9f98e397ffc14ef668b.tar.bz2
portable-47c332a802e83b3baa8aa9f98e397ffc14ef668b.zip
Land #1235 - fix remote branch fetching
-rwxr-xr-xupdate.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index f27e3ec..e4377d3 100755
--- a/update.sh
+++ b/update.sh
@@ -21,7 +21,7 @@ openbsd_branch=`cat OPENBSD_BRANCH`
21# pull in latest upstream code 21# pull in latest upstream code
22echo "pulling upstream openbsd source" 22echo "pulling upstream openbsd source"
23if [ ! -d openbsd ]; then 23if [ ! -d openbsd ]; then
24 LIBRESSL_GIT_OPTIONS="${LIBRESSL_GIT_OPTIONS:- --depth=8}" 24 LIBRESSL_GIT_OPTIONS="${LIBRESSL_GIT_OPTIONS:- --depth=8 --no-single-branch}"
25 LIBRESSL_GIT="${LIBRESSL_GIT:- https://github.com/libressl}" 25 LIBRESSL_GIT="${LIBRESSL_GIT:- https://github.com/libressl}"
26 git clone $LIBRESSL_GIT_OPTIONS $LIBRESSL_GIT/openbsd 26 git clone $LIBRESSL_GIT_OPTIONS $LIBRESSL_GIT/openbsd
27fi 27fi
@@ -32,7 +32,7 @@ tag=`git describe --exact-match --tags HEAD 2>/dev/null`
32is_tag=$? 32is_tag=$?
33# adjust for 9 hour time delta between trees 33# adjust for 9 hour time delta between trees
34release_ts=$((`git show -s --format=%ct $tag|tail -1` + 32400)) 34release_ts=$((`git show -s --format=%ct $tag|tail -1` + 32400))
35commit=`git -C openbsd rev-list -n 1 --before=$release_ts $openbsd_branch` 35commit=`git -C openbsd rev-list -n 1 --before=$release_ts origin/$openbsd_branch`
36git -C openbsd fetch 36git -C openbsd fetch
37if [ $is_tag -eq 0 ]; then 37if [ $is_tag -eq 0 ]; then
38 echo "This is tag $tag, trying OpenBSD tag libressl-$tag" 38 echo "This is tag $tag, trying OpenBSD tag libressl-$tag"