-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Not starting when trying to use in submodule of symlinked submodule #1865
Comments
For anyone with same problem: I seem to have managed to overcome this with |
This started appearing again in |
Yeah, for me too. Had to spend about an hour to find the issue. Seems like something changed with how worktrees are handled. I updated the alias to be |
Thanks @echasnovski, that solved it! |
Correction: see next comment. |
Correction: #3183 appears to work correctly for this case. I added a test case "doubleLinkedSubmoduleCase" to repotest.zsh that builds a repository with a two-level nested submodule, and a symlink into the inner submodule, ala:
Lazygit works when cd'ing into a symlink in
I believe no. 2 matches the repro for this issue. If not, I'd love a correction so I can craft a repro scenario. Lazygit still has issues when cd'ing into a subdirectory of innerSubmodule via a symlink, but I believe that's effectively part of lazygit's known issues with running from repo subdirs. |
This is a test case related to jesseduffield#1865 (see also commentary in jesseduffield#3183) that exercises lazygit's ability to make sense of deep links into submodule heirarchies.
Describe the bug
When intending to use inside submodule of a symlinked submodule, there is this error with latest release (version 0.34):
Everything works in the following scenarios:
This seems like it should have been fixed in #789, but, unfortunately, I don't see this working.
To Reproduce
Steps to reproduce the behavior:
lazygit
(I see error).For more context, this happens inside my dotfiles. It has submodule
neovim/.config/nvim
(link to repo), which I symlink to~/.config/nvim
while dotfiles are in~/dotfiles
. Thenvim
submodule in turn has many own submodules for plugins (inpack/plugins/opt
directory). So trying to runlazygit
:~/.config/nvim/pack/plugins/opt/gitsigns
).~/dotfiles/neovim/.config/nvim/pack/plugins/opt/gitsigns
).~/.config/nvim/pack/plugins/opt
).Expected behavior
lazygit
can start in submodule of symlinked submodule.Screenshots
No screenshot.
Desktop (please complete the following information):
lazygit --version
).Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: