To reproduce, there must be some bare repository with at least one submodule in it. Let say bare repo is in ~/.git_dotfiles, then invoke lazygit like lazygit --git-dir=~/.git_dotfiles --work-tree=~/. Navigate to submodule view then enter any submodule with enter key, finally press esc to go back to main view.
Outcome is lazygit quits unexpectedly with following message:
2020/12/17 13:21:29 Error: must be run inside a git repository
❯ lazygit --version
commit=, build date=, build source=homebrew, version=0.23.7, os=darwin, arch=amd64
To reproduce, there must be some bare repository with at least one submodule in it. Let say bare repo is in
~/.git_dotfiles, then invoke lazygit likelazygit --git-dir=~/.git_dotfiles --work-tree=~/. Navigate to submodule view then enter any submodule with enter key, finally press esc to go back to main view.Outcome is lazygit quits unexpectedly with following message: