From: Martin von Zweigbergk Date: Sat, 29 Oct 2022 05:46:37 GMT Subject: Bug in `git branch --delete main` when on other orphan branch Message-ID: Hi, I did this: git init test cd test echo a > file git add file git commit -m a git checkout --orphan other git branch --delete main The last command fails with: fatal: Couldn't look up commit object for HEAD That's a bug, right? I can of course work around it with `rm .git/refs/heads/main`.