Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRM worktree management is not compatibe witl lazygit #69

Open
OGKevin opened this issue Mar 15, 2024 · 1 comment
Open

GRM worktree management is not compatibe witl lazygit #69

OGKevin opened this issue Mar 15, 2024 · 1 comment

Comments

@OGKevin
Copy link

OGKevin commented Mar 15, 2024

When using this tool to manage repos and create worktrees, LazyGit can no longer be used.
Lazygit works fine if using git directly to manage and create worktrees.

❯ lazygit
2024/03/15 16:41:20 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues

*errors.errorString Error getting repo paths: failed to get repo git dir path: could not find git dir for <redacted>/master: path is not under `worktrees` or `modules` directories
github.com/jesseduffield/lazygit/pkg/commands/git.go:100 (0x980dd3)
github.com/jesseduffield/lazygit/pkg/gui/gui.go:271 (0xab0a8b)
github.com/jesseduffield/lazygit/pkg/gui/gui.go:656 (0xab367b)
github.com/jesseduffield/lazygit/pkg/gui/gui.go:675 (0xab3d65)
github.com/jesseduffield/lazygit/pkg/utils/utils.go:108 (0x80f25c)
github.com/jesseduffield/lazygit/pkg/gui/gui.go:674 (0xab3cae)
github.com/jesseduffield/lazygit/pkg/app/app.go:263 (0xadf91d)
github.com/jesseduffield/lazygit/pkg/app/app.go:48 (0xadf8b2)
github.com/jesseduffield/lazygit/pkg/app/entry_point.go:150 (0xae1a8a)
github.com/jesseduffield/lazygit/main.go:23 (0xae31d8)
runtime/internal/atomic/types.go:194 (0x43da5b)
runtime/asm_amd64.s:1650 (0x46dae1)

❯ ..

❯ l
total 20K
drwxrwxr-x  5 kevin kevin 4.0K Mar 14 13:40 .
drwxrwxr-x  3 kevin kevin 4.0K Mar 14 11:38 ..
drwxrwxr-x  9 kevin kevin 4.0K Mar 14 13:41 .git-main-working-tree
drwxr-xr-x 13 kevin kevin 4.0K Mar 14 11:40 master
drwxr-xr-x 13 kevin kevin 4.0K Mar 14 13:41 PS-2475
/tmp$ git clone https://github.com/hakoerber/git-repo-manager.git
Cloning into 'git-repo-manager'...
remote: Enumerating objects: 2469, done.
remote: Counting objects: 100% (2469/2469), done.
remote: Compressing objects: 100% (743/743), done.
remote: Total 2469 (delta 1739), reused 2407 (delta 1706), pack-reused 0
Receiving objects: 100% (2469/2469), 1.75 MiB | 4.74 MiB/s, done.
Resolving deltas: 100% (1739/1739), done.
/tmp$ cd git-repo-manager/
/tmp/git-repo-manager$ lazygit
/tmp/git-repo-manager$
/tmp/git-repo-manager$ git worktree add /tmp/grm
Preparing worktree (new branch 'grm')
HEAD is now at ea7299a Merge pull request #67 from siriobalmelli/develop
/tmp/git-repo-manager$ cd /tmp/grm/
/tmp/grm$ lazygit
/tmp/grm$
@hakoerber
Copy link
Owner

Ok, I am not familiar with lazygit. Could you please provide a minimal reproducible example? Especially the repository where lazygit breaks (your upper example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants