gitui
gitui copied to clipboard
Fetching HEAD creates a local HEAD branch
Describe the bug
Selecting <remote>/HEAD in the branch-selection dialog creates a local HEAD branch, which leads to:
warning: refname 'HEAD' is ambiguous.
To Reproduce Steps to reproduce the behavior:
- Go to 'Branches' dialog (
b) - Select 'Remote' (
Tab) - Scroll down to (for example) 'upstream/HEAD'
- Press Enter
- Exit program & run, for example,
git branch
Expected behavior
Program doesn't create branches called HEAD.
Context (please complete the following information):
- OS/Distro + Version:
Ubuntu 25.04 - GitUI Version
gitui nightly 2025-01-15 (99f6967)(snap)