ci(aur): attach to master after clone to avoid detached HEAD #149
Reference in New Issue
Block a user
Delete Branch "fix/publish-aur-detached-head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mainsince 2026-04-23 05:58 UTC (first failure after a successful run ~9h earlier), with:aur.archlinux.org's git server stopped advertising the HEAD symref. Probe:ref: refs/heads/master. Without that,git clonefalls back to checking out HEAD as a detached SHA. The run log confirms: "You are in 'detached HEAD' state" immediately afterCloning into 'aur-repo'.... The subsequentgit committhen lands on that detached HEAD, andgit push origin masterhas nothing to push.git clone, explicitlygit checkout master. The branch still exists on the remote (as shown inls-remote), so this just reattaches the working copy.Test plan
git diff— 4 added lines, workflow-only changemain, confirm thepublish-aur.ymlrun succeeds through the finalgit pushnuma-gitpackage tip advances to the merge commitUnblocks: every AUR publish since #139.