commit 86ff602297a9793f38445923ddf789ab7f56a658 parent 9d8a767567562077d27625baed1b517a5803df4b Author: Martin Schanzenbach <schanzen@gnunet.org> Date: Tue, 17 Dec 2024 11:39:05 +0100 add remote tracking branches Diffstat:
| M | .buildbot/build.sh | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.buildbot/build.sh b/.buildbot/build.sh @@ -1,11 +1,18 @@ #!/bin/bash +git branch -r \ + | grep -v '\->' \ + | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ + | while read remote; do \ + git branch --track "${remote#origin/}" "$remote"; \ + done + # Conditional extens switch in config export SPHINX_MULTIVERSION=1 git tag --delete latest || echo "Deleting tag can fail" # Get latest version branch -latest=$(git for-each-ref --format "%(refname)" | grep -i '^refs/heads/v[0-9]*\.[0-9]*\.x$' | sort -r | head -n1) +latest=$(git for-each-ref --format "%(refname)" | grep -i '^refs/remotes/origin/v[0-9]*\.[0-9]*\.x$' | sort -r | head -n1) echo $latest" is latest ref" git tag latest $latest sphinx-multiversion . _build