From 08bd6b5aa059bb8618f3aaf8e04a9db919d6cc98 Mon Sep 17 00:00:00 2001 From: silver Date: Tue, 5 Aug 2025 23:09:45 +0000 Subject: [PATCH] test: see if skipping the head "branch" works --- .forgejo/workflows/geyser.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.forgejo/workflows/geyser.yml b/.forgejo/workflows/geyser.yml index 679e238..ce6e66d 100644 --- a/.forgejo/workflows/geyser.yml +++ b/.forgejo/workflows/geyser.yml @@ -38,6 +38,10 @@ jobs: for branch in "${branches[@]}"; do # for debugging echo "$branch" + if [ "$branch" == "refs/remotes/origin/HEAD" ]; then + continue + fi + # need to convert "'refs/remotes/origin/main" to "main" branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $4 }') git switch $branch_local