<!-- Before reporting: search existing issues and ensure you are running neovim >= 0.5 and the latest version of lualine. --> 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 <!-- Check these boxes by placing an X in the middle --> - [x] I'm using the latest lualine. - [x] I didn't find the issue in existing issues or PRs. ### How to reproduce the problem 1. Create a git repo with reftable enabled: ```gitconfig [core] repositoryformatversion = 1 [extensions] refstorage = reftable ``` 2. Open neovim ### Expected behaviour Actual branch name is displayed ### Actual behaviour Branch name is `.invalid` <img width="278" height="81" alt="Image" src="https://github.com/user-attachments/assets/c042190c-9381-4881-b1d8-4a9aeb5445fa" /> ### Minimal config to reproduce the issue <!-- ================= ### IMPORTANT ### ================= You need to provide a way to reproduce the issue without influence of other plugins. Issues without proper format and a proper way to reproduce might be ignored and closed without any reply. This script can help you with that. https://github.com/nvim-lualine/lualine.nvim/blob/master/scripts/nvim_isolated_conf.sh Create an isolated config directory with: `nvim_isolated_conf.sh -c DirectoryName` Then modify the DirectoryName/.config/nvim/init.vim so you can reproduce the issue . `nvim_isolated_conf.sh -e DirectoryName` will open DirectoryName/.config/nvim/init.vim in neovim. the init.vim will have instructions on how and where to place your config don't worry if you don't know viml you can get away with lua even in a vim file. Then you can load the config in an isolated environment to see if the issue is occurring with `nvim_isolated_conf.sh -l DirectoryName` Paste the DirectoryName/.config/init.vim below --> ### Additional information