From 2677aab92004fd799305093381eaf181ff8b7cd2 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 12 Aug 2026 08:57:45 +0900 Subject: update.sh: do not ignore git failures git describe is expected to fail when HEAD is not exactly at a tag. However, the set +e used for this check also allowed fetch, checkout, and pull failures to be ignored, causing less useful missing-file errors later in the script. Re-enable set -e immediately after recording the git describe result so that subsequent Git operations fail at the actual error. --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index b863d4a..ddd2cf3 100755 --- a/update.sh +++ b/update.sh @@ -30,6 +30,7 @@ fi set +e tag=`git describe --exact-match --tags HEAD 2>/dev/null` is_tag=$? +set -e # adjust for 9 hour time delta between trees release_ts=$((`git show -s --format=%ct $tag|tail -1` + 32400)) commit=`git -C openbsd rev-list -n 1 --before=$release_ts origin/$openbsd_branch` @@ -45,7 +46,6 @@ else git -C openbsd checkout $openbsd_branch git -C openbsd pull fi -set -e # setup source paths CWD=`pwd` -- cgit v1.2.3-55-g6feb