jesseduffield / jesseduffield/lazygit

Got `fork/exec /usr/bin/git: invalid argument` when using lazygit

Open
#360 24 comments 0 reactions 0 assignees View on GitHub
bug compatibility credentials
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**

I reinstall `lazygit` using `go get` as my reinstallation of WSL. Then I start using `lazygit`, I got this when I try to use p to pull, or Shift + P to push.

![image](https://user-images.githubusercontent.com/40715044/50570355-ee0a9c00-0dc2-11e9-84b4-d4c7162ea5e5.png)

**To Reproduce**

Steps to reproduce the behavior:
1. `cd` to a repo
2. p
3. See error `fork/exec /usr/bin/git: invalid argument`
4. Then I tried Shift + P
5. Same error again.

**Desktop (please complete the following information):**
- OS: WLinux (A debian based WSL distribution)
- Lazygit Version:

```bash
$ lg -v
commit=, build date=, build source=unknown, version=unversioned, os=linux, arch=amd64
```

I then run `go clean -i github.com/jesseduffield/lazygit && go get github.com/jesseduffield/lazygit` to make sure I have installed the latest version of `lazygit`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.