Skip to content

lazygit quits unexpectedly with message: Error: must be run inside a git repository #1118

Description

@vbauerster

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions