lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

yadm repo failed

Open timsofteng opened this issue 3 years ago • 2 comments

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:

  1. Install yadm.
  2. Do yadm init
  3. Go to /home/user/.local/share/yadm/repo.git/
  4. 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.

timsofteng avatar Jul 28 '22 18:07 timsofteng

Please update to v0.35 and try again.

In case it's a bare repo, it's a feature not yet supported, then.

mark2185 avatar Jul 28 '22 19:07 mark2185

In case of yadm it will be a bare repo. I hit the same issue.

louwers avatar Aug 26 '22 21:08 louwers

~/.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.

cgjosephlee avatar Jun 27 '23 03:06 cgjosephlee