Skip to content

fix(review): report the branch before the first commit - #3498

Open
rudycelekli wants to merge 1 commit into
backnotprop:mainfrom
rudycelekli:codex-20261115-git-unborn-branch
Open

rudycelekli wants to merge 1 commit into
backnotprop:mainfrom
rudycelekli:codex-20261115-git-unborn-branch

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Summary

Review and annotate sessions could omit the branch name in a freshly initialized Git repository. Look up the symbolic branch in both Bun and Pi, which works before the first commit and still leaves detached HEAD without a branch name.

Validation

A scratch repo initialized with a named branch reproduced the failure and both runtimes returned that name with the fix. The two focused project metadata tests passed. Prepared with Codex assistance.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant