You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In #1023 support for bare repositories was added. However when using a bare repo the Status does not display correctly.
Instead of the repo name (as defined by --git-dir) being displayed the name of the --work-tree directory is used instead (my $HOME directory in this case).
The count of how many commits ahead or behind of origin displays as ↑?↓? instead of the actual counts.
Expected behavior
Status should use the name of --git-dir for repo name and correctly display the commit count.
Desktop:
OS: Linux
Lazygit Version: v0.23.6.7c1889cd
The last commit id if you built project from sources: 7c1889c
Additional context
Add any other context about the problem here.
I am trying to use lazygit for managing my dotfiles, similarly to this and #778.
Related question: Is there anyway to use lazygit to browse/edit tracked files in addition to changed/staged files? I think this functionality would make lazygit the perfect tool for managing dotfiles the bare repo way as you would be able to browse and edit only the files you care about directly from lazygit. Such as with git-ls-files(1) or git-ls-tree(1): Stack Overflow source
git ls-tree --full-tree -r --name-only HEAD
The text was updated successfully, but these errors were encountered:
Describe the bug
In #1023 support for bare repositories was added. However when using a bare repo the Status does not display correctly.
Instead of the repo name (as defined by
--git-dir
) being displayed the name of the--work-tree
directory is used instead (my$HOME
directory in this case).The count of how many commits ahead or behind of origin displays as
↑?↓?
instead of the actual counts.To Reproduce
Steps to reproduce the behavior:
lazygit
to bare repo and work tree:Expected behavior
Status should use the name of
--git-dir
for repo name and correctly display the commit count.Desktop:
Additional context
Add any other context about the problem here.
I am trying to use
lazygit
for managing my dotfiles, similarly to this and #778.Related question: Is there anyway to use
lazygit
to browse/edit tracked files in addition to changed/staged files? I think this functionality would makelazygit
the perfect tool for managing dotfiles the bare repo way as you would be able to browse and edit only the files you care about directly fromlazygit
. Such as withgit-ls-files(1)
orgit-ls-tree(1)
: Stack Overflow sourceThe text was updated successfully, but these errors were encountered: