Description
Description
I recently switched over to using git worktrees instead fo branches and lazygit from inside of nvim won't load.
clone a repo using the --bare option
cd into repo dir
git worktree add branchName
cd branchNamed
nvim .
open a file.
launch lazygit
2021/10/28 21:43:38 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues
*fs.PathError stat /Users/markhuggins/dev/work/mosaic5.git/tearsheets-canary/.git/: not a directory
/home/runner/work/lazygit/lazygit/pkg/utils/errors.go:13 (0x159bbcb)
/home/runner/work/lazygit/lazygit/pkg/commands/git.go:113 (0x159bb9a)
/home/runner/work/lazygit/lazygit/pkg/commands/git.go:57 (0x159b319)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:125 (0x164a885)
/home/runner/work/lazygit/lazygit/main.go:124 (0x164cafd)
/opt/hostedtoolcache/go/1.16.7/x64/src/runtime/proc.go:225 (0x10383b6)
/opt/hostedtoolcache/go/1.16.7/x64/src/runtime/asm_amd64.s:1371 (0x106c161)
Expected behavior
lazygit loads correctly
Desktop (please complete the following information):
- nvim --version:
NVIM v0.5.0
Build type: Release