Skip to content

Lazygit crashes on start #5033

@jwezel

Description

@jwezel

Describe the bug

Lazygit crashed on newly cloned repo.

To Reproduce

Steps to reproduce the behavior:

  1. Type lazygit on shell
  2. 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.

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