jesseduffield / jesseduffield/lazygit

Error on git rev-parse --is-bare-repository

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

Description

**Describe the bug**
Running `git rev-parse --is-bare-repository` yields an error.

**To Reproduce**
Steps to reproduce the behavior:

1. Run `lazygit` on an existing repo
4. See error

**Expected behavior**
UI appears

**Log**
```
{"level":"info","msg":"language: C","time":"2022-12-07T11:05:43+01:00"}
{"command":"git --version","level":"debug","msg":"RunCommand","time":"2022-12-07T11:05:43+01:00"}
{"command":"git rev-parse --git-dir","level":"debug","msg":"RunCommand","time":"2022-12-07T11:05:43+01:00"}
{"command":"git rev-parse --is-bare-repository","level":"debug","msg":"RunCommand","time":"2022-12-07T11:05:43+01:00"}
{"level":"error","msg":"*exec.ExitError exit status 1\n/tmp/lazygit-20221114-2841-1ovipyq/lazygit-0.36.0/pkg/app/app.go:57 (0xa7e3fc)\n/tmp/lazygit-20221114-2841-1ovipyq/lazygit-0.36.0/pkg/app/entry_point.go:146 (0xa804eb)\n/tmp/lazygit-20221114-2841-1ovipyq/lazygit-0.36.0/main.go:23 (0xa8251e)\n/home/linuxbrew/.linuxbrew/Cellar/go/1.19.3/libexec/src/runtime/proc.go:250 (0x439eb2)\n/home/linuxbrew/.linuxbrew/Cellar/go/1.19.3/libexec/src/runtime/asm_amd64.s:1594 (0x468501)\n","time":"2022-12-07T11:05:43+01:00"}
```

**Version info:**
commit=, build date=, build source=homebrew, version=0.36.0, os=linux, arch=amd64, git version=2.25.1

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.