From 5099cf84d084df12e838bf56b2aa40ae05b1871a Mon Sep 17 00:00:00 2001 From: Rudy Fraser Date: Fri, 1 May 2026 17:22:02 -0400 Subject: [PATCH] ci: detach HEAD before fetching origin refs Same fix as rsky. --- .github/workflows/tangle.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tangle.yml b/.github/workflows/tangle.yml index 3805d5742..0be47310c 100644 --- a/.github/workflows/tangle.yml +++ b/.github/workflows/tangle.yml @@ -37,6 +37,10 @@ jobs: # the destination instead of as proper branches. Materialize them # under refs/heads/* first so the mirror push lands them as real # branches that forge can render. + # + # Detach HEAD before fetching so the fetch can overwrite + # refs/heads/ without git refusing. + git -c advice.detachedHead=false checkout --detach git fetch origin '+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*' git remote add tangled git@knot.blacksky.community:blackskyweb.xyz/blacksky.community git push --mirror tangled -- knotmirror 0.0.1