G
YouTube TikTok Games
Skip to content

gitui does not work inside a sparse checkout #1226

Closed

Description

@W1M0R

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.

Activity

  1. extrawurst commented on May 11, 2022

    @extrawurst
    Collaborator

    see libgit2/libgit2#2263

    now also documented as of ad0ec7e

  2. extrawurst commented on Sep 18, 2022

    @extrawurst
    Collaborator

    will close until upstream supports this

  3. melMass commented on Mar 14, 2023

    @melMass

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

  4. added a commit that references this issue on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions