branch='trunk'
if ! command -v git >/dev/null 2>&1; then
echo 'byggsteg: git is not on this deployment PATH, so the clone cannot be updated' >&2
exit 1
fi
if ! cd "$dir"; then
echo "byggsteg: cannot enter the clone $dir" >&2
exit 1
fi
root=$(git rev-parse --show-toplevel 2>/dev/null)
if [ "$root" != "$(pwd -P)" ]; then
echo "byggsteg: $dir is not a git checkout; remove it and the next run clones it again" >&2
exit 1
fi
if ! origin=$(git remote get-url origin 2>/dev/null); then
echo "byggsteg: $dir has no origin remote to fetch $branch from" >&2
exit 1
fi
before=$(git rev-parse --short HEAD 2>/dev/null) || before=none
attempt=1
while :; do
if GIT_TERMINAL_PROMPT=0 git fetch --quiet origin "+refs/heads/$branch:refs/remotes/origin/$branch"; then
break
fi
if [ "$attempt" -ge 3 ]; then
echo "byggsteg: could not fetch $branch from $origin after 3 attempts; is the branch still there, and is the remote reachable?" >&2
exit 1
fi
echo "byggsteg: fetching $branch from $origin failed; retrying in $((attempt * 2))s" >&2
sleep $((attempt * 2))
attempt=$((attempt + 1))
done
if ! git checkout --quiet --force -B "$branch" FETCH_HEAD; then
echo "byggsteg: fetched $branch from $origin but could not check it out" >&2
exit 1
fi
after=$(git rev-parse --short HEAD)
if [ "$before" = "$after" ]; then
echo "byggsteg: $branch was already at $after"
else
echo "byggsteg: $branch moved from $before to $after"
fi
byggsteg: trunk moved from 52de283 to dd89168
setup$ uname -a✓ succeeded1 lines · 0.0s
Linux wolk-jjba 7.2.11-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
commit dd891683f55c0af9c25257e042b8f33dcf210e1b
Author: Josep Bigorra <jjbigorra@gmail.com>
Date: Tue Dec 1 16:07:25 2026 +0100
chore: Release v2.0.7
Write 2.0.7 into the files that carry the version, and the notes
that say what the release is.
Balkr moves to 0.11.2; every other package in the collection is already at the tag its project released.
run$ maak check-formatting✗ failed14 lines · 0.1s
--------------------------------------------------------------
Maak 1.0.0: the infinitely extensible command runner
Loading tasks from: /etc/byggsteg/job-clone/guix-jointhefreeworld/trunk/maak.scm
Executing Maak tasks: check-formatting
--------------------------------------------------------------
=> Running Maak task: check-formatting
Fail when a Scheme source is not the way the formatter would write it.
`maak fmt' rewrites the tree it is judging, so it cannot fail on a file nobody
formatted; this asks the same formatter to check instead of write, which is
the question a gate can ask.
Execute command:
sift check .
maak: error: command failed (exit code 127): sift check .
hint: Fix the command above, or run `maak --dry-run' to inspect it first.