Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitui does not work inside a sparse checkout #1226

Closed
W1M0R opened this issue May 11, 2022 · 3 comments
Closed

gitui does not work inside a sparse checkout #1226

W1M0R opened this issue May 11, 2022 · 3 comments

Comments

@W1M0R
Copy link

W1M0R commented May 11, 2022

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 W1M0R added the bug Something isn't working label May 11, 2022
@extrawurst
Copy link
Owner

extrawurst commented May 11, 2022

see libgit2/libgit2#2263

now also documented as of ad0ec7e

@extrawurst
Copy link
Owner

will close until upstream supports this

@melMass
Copy link

melMass commented Mar 14, 2023

Seems like this is the upstream PR to follow: libgit2/libgit2#6394

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants