diff --git a/.forgejo/workflows/geyser.yml b/.forgejo/workflows/geyser.yml index 336dadc..72f8369 100644 --- a/.forgejo/workflows/geyser.yml +++ b/.forgejo/workflows/geyser.yml @@ -27,10 +27,10 @@ jobs: git fetch --all git pull --all branches=() - eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)" + eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/remotes/origin/)" for branch in "${branches[@]}"; do # need to convert "refs/heads/main" to "main" - branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $3 }') + branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $4 }') echo $branch_local #git switch $branch_local #git status