lazygit
lazygit copied to clipboard
yadm repo failed
Describe the bug
When I try to open lazygit in yadm repo directory in fails.
Here is the log
> lg
2022/07/28 21:54:38 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues
*errors.errorString Must open lazygit in a git repository
github.com/jesseduffield/lazygit/pkg/commands/git.go:187 (0x564de03eca45)
github.com/jesseduffield/lazygit/pkg/commands/git.go:60 (0x564de03eb71f)
github.com/jesseduffield/lazygit/pkg/gui/gui.go:480 (0x564de044ddd3)
github.com/jesseduffield/lazygit/pkg/app/app.go:138 (0x564de049a959)
github.com/jesseduffield/lazygit/main.go:135 (0x564de049c7eb)
runtime/proc.go:250 (0x564ddfef6153)
runtime/asm_amd64.s:1571 (0x564ddff23be1)
To Reproduce Steps to reproduce the behavior:
- Install
yadm. - Do
yadm init - Go to
/home/user/.local/share/yadm/repo.git/ - Try to invoke
lazygit
Expected behavior Lazygit should work as in ordinary git repo.
Desktop (please complete the following information):
- OS: Alpine Linux
- Lazygit Version 0.34
Additional context Add any other context about the problem here.
Please update to v0.35 and try again.
In case it's a bare repo, it's a feature not yet supported, then.
In case of yadm it will be a bare repo. I hit the same issue.
~/.local/share/yadm/repo.git is actually .git in a typical repo, it is not the root of yadm repo.
Try
lg -w ~ -g ~/.local/share/yadm/repo.git
See https://github.com/jesseduffield/lazygit/discussions/1201.
EDIT: yadm enter lg seems to work as well.