Lazygit crashes on start
Describe the bug
Lazygit crashed on newly cloned repo.
To Reproduce
Steps to reproduce the behavior:
- Type lazygit on shell
- Error message occurs
2025/11/11 11:47:04 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues
*fs.PathError chdir /c/Projects/arcgis: The system cannot find the path specified.
/home/runner/work/lazygit/lazygit/pkg/utils/errors.go:13 (0x14b693e)
/home/runner/work/lazygit/lazygit/pkg/commands/git.go:70 (0x14b693f)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:305 (0x1672f3e)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:843 (0x1677aaa)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:864 (0x1677f88)
/home/runner/work/lazygit/lazygit/pkg/utils/utils.go:80 (0x123a276)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:863 (0x1677ebf)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:277 (0x16da55a)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:48 (0x16da4ea)
/home/runner/work/lazygit/lazygit/pkg/app/entry_point.go:172 (0x16dc806)
/home/runner/work/lazygit/lazygit/main.go:23 (0x16ddb98)
/opt/hostedtoolcache/go/1.24.7/x64/src/internal/runtime/atomic/types.go:194 (0xe767fd)
/opt/hostedtoolcache/go/1.24.7/x64/src/runtime/asm_amd64.s:1700 (0xeb1a81)
Expected behavior
The UI of lazygit should occur.
Version info:
- commit=3de12b7fde56cec5d0fc27b1986180c27e50d971, build date=2025-09-17T18:42:05Z, build source=binaryRelease, version=0.55.1, os=windows, arch=amd64, git version=2.51.0
- git version 2.51.0
Additional context
This happens when starting lazygit from within a bash shell in mintty. Starting it in cmd.exe does not cause any problems.
Are you able to access /c/Projects/arcgis from mintty? Does this happen when you open lazygit from within a repo or from outside of one?
Yes, git cli has no problems with /c/Projects/arcgis. The problem occurred within the repo.
However it does make a difference whether starting lazygit from within mintty or cmd. From cmd it does work, from mintty it doesn't.
OK, problem located. The MSYS Version of Git only reports paths in Unix mode (C:\Project\p1 → /c/project/p1). Lazygit obviously can't handle paths in this notation.
Solution: Use Git for Windows Installation or a Git version that came with a Git GUI tool you installed. Scan the disk for git.exe and use that.