gitui: Gitui considers my repository bare, despite the fact that it is not.

Describe the bug gitui bails telling me my repo is bare despite the fact that it is not.

To Reproduce gitui in my git repo.

Expected behavior Starts up as expected.

Screenshots

❯ git config --get core.bare
false
❯ gitui
Error: invalid path
please run gitui inside of a non-bare git repository

Software version

gitui 0.22.1

Operating system

Linux 5.8.0-59-generic

Compile time information

  • Profile: release
  • Target triple: x86_64-unknown-linux-gnu
  • Family: unix
  • OS: linux
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-unknown-linux-gnu

Environment variables

SHELL=/bin/zsh
EDITOR=kak
GIT_EDITOR=<not set>
VISUAL=kak

Command-line

gitui --bugreport 'considers this a bare repo'

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (1 by maintainers)

Most upvoted comments

Looks like this is the probably the same problem as #1293 if the problem was occurring on a network/mounted drive. It does appear to be fixed in the newest commit on master, but the latest crates.io release still isn’t fixed. For anyone still running into this issue try installing gitui from master:

cargo install --git https://github.com/extrawurst/gitui

@Icantjuddle what does git status say? I remeber getting this error when trying to run gitui on folders with weird permissions

Oh thats interesting. that for sure needs better diagnostics in gitui then. can you create a new issue for this particular problem?

FYI: This is now fixed for me in the latest gitui release v0.24.0.