Skip to content

BUG: Error invalid path on valid git repo using reftable backend. #2700

Open

Description

@groutoutlook

Describe the bug
gitui emit errors on some random(?) repo.

To Reproduce
Steps to reproduce the behavior:

  1. Clone anything with Git 2.45+
  2. Try to invoke gitui on it.
  3. See error
$ gitui
invalid path
please run gitui inside of a non-bare git repository

Expected behavior
It should read the path as normal and pop out a TUI.

Screenshots

Image

Context (please complete the following information):

  • OS/Distro + Version: Windows 11 Pro x86_64 Build 10.0.26200.5761 (25H2)
  • GitUI Version: gitui 0.27.0 2025-01-14 (99f6967)
  • Rust version: Prebuilt on Releases.

Additional context

  1. lazygit can consume that path just fine.
  2. After trying to clone gitui to build locally with rustc version 1.89.0 (29483883e 2025-08-04), I got
Error: unsupported extension name extensions.refstorage; class=Repository (6)
  1. Maybe it's libgit2 error? please look more into it.
  • Found on libgit2 #5332
    • Due to dependent on git2, gitui cant resolve reftable backend, and that's fine for me.

Activity

  1. changed the title [-]BUG: Error invalid path on valid git repo.[/-] [+]BUG: Error invalid path on valid git repo using `reftable` backend.[/+] on Sep 8, 2025
  2. ofek commented on Jun 22, 2026

    @ofek

    I'm experiencing the same issue:

    ❯ gitui --version
    gitui 0.28.1
    ❯ gitui
    Error: invalid repo path: unsupported extension name extensions.refstorage; class=Repository (6)
    
  3. groutoutlook commented on Jun 22, 2026

    @groutoutlook
    Author

    I'm experiencing the same issue:

    fwiw you can run:

    > git refs migrate --ref-format=files

    to use them atm. the issues are still there but at least doing that make gitui usable

  4. alexandrusorodoc commented on Sep 30, 2026

    @alexandrusorodoc

    Hello, any update on this?

  5. groutoutlook commented on Sep 30, 2026

    @groutoutlook
    Author

    @alexandrusorodoc you should check out the libgit2 issue link above for more recent update. It's still the major blocker.

  6. ofek commented on Sep 30, 2026

    @ofek

    Could we go with this approach?

  7. groutoutlook commented on Sep 30, 2026

    @groutoutlook
    Author

    Could we go with this approach?

    you really have to try build git2 on that new HEAD and point local gitui to the new version that you build yourself.

    Personally I will wait or just use other TUI if you cant change the reftable.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions