gitui icon indicating copy to clipboard operation
gitui copied to clipboard

gitui does not work inside a sparse checkout

Open W1M0R opened this issue 2 years ago • 1 comments

Describe the bug Trying to launch gitui inside a sparse checkout produces the following message:

invalid path
please run gitui inside of a non-bare git repository

To Reproduce Steps to reproduce the behavior:

$ git clone \
	--depth 1 \
	--filter=blob:none \
	--sparse \
	--branch master \
	https://github.com/extrawurst/gitui.git \
	~/gitui
$ cd ~/gitui
$ git sparse-checkout set --stdin <<EOF
.gitignore
EOF
$ gitui
invalid path
please run gitui inside of a non-bare git repository
$ lazygit
...just works...

Expected behavior gitui should detect the repo and launch without error.

Screenshots None

Context (please complete the following information):

  • Ubuntu 20.04
  • gitui 0.20.1
  • Rust version: Not installed

Additional context Installed via nix.

W1M0R avatar May 11 '22 09:05 W1M0R

see https://github.com/libgit2/libgit2/issues/2263

now also documented as of ad0ec7e

extrawurst avatar May 11 '22 10:05 extrawurst

will close until upstream supports this

extrawurst avatar Sep 18 '22 13:09 extrawurst

Seems like this is the upstream PR to follow: https://github.com/libgit2/libgit2/pull/6394

melMass avatar Mar 14 '23 15:03 melMass