On git repos with refstorage set to reftable, branch name displays as .invalid.
It is because .git/HEAD has ref: refs/heads/.invalid and cannot be used as a source for branch names
Self Checks
How to reproduce the problem
- Create a git repo with reftable enabled:
[core]
repositoryformatversion = 1
[extensions]
refstorage = reftable
- Open neovim
Expected behaviour
Actual branch name is displayed
Actual behaviour
Branch name is .invalid
Minimal config to reproduce the issue
Additional information
On git repos with
refstorageset toreftable, branch name displays as.invalid.It is because
.git/HEADhasref: refs/heads/.invalidand cannot be used as a source for branch namesSelf Checks
How to reproduce the problem
Expected behaviour
Actual branch name is displayed
Actual behaviour
Branch name is
.invalidMinimal config to reproduce the issue
Additional information