gitui-org / gitui-org/gitui

Support for SHA-256 object format repositories (fails with "invalid path")

Aperta
#2,800 6 commenti 6 reazioni 0 assegnatari Vedi su GitHub
feature-request upstream
Lingua principale
Rust
Stelle
22.5k
Fork
773
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Is your feature request related to a problem? Please describe.**
I am unable to use gitui in repositories initialized with the SHA-256 object format (git init --object-format=sha256). When I attempt to launch the application in such a repository, it immediately fails and exits with the error message: invalid path: please run gitui inside of a non-bare git repository.

This is frustrating because the repository is completely valid. I can perform all operations using the standard Git CLI without issues. Furthermore, other TUI tools like lazygit handle these SHA-256 repositories correctly, which suggests the issue is specific to gitui or its underlying libgit2 bindings not parsing the repository metadata correctly.

**Describe the solution you'd like**
I would like gitui to detect and support repositories using the SHA-256 hashing algorithm. It should launch normally and allow for standard git operations, just as it does with standard SHA-1 repositories.

**Describe alternatives you've considered**
I have verified that reverting to the default SHA-1 format (git init) allows gitui to work, but this is not a viable solution for my workflow as I specifically require the security properties of SHA-256. Currently, I am forced to use the CLI or alternative tools like lazygit for these specific repositories.

**Additional context**
Here are the steps to reproduce the issue:
1. Initialize a new repository with git init --object-format=sha256.
2. Run gitui.
3. Observe the error: invalid path: please run gitui inside of a non-bare git repository.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il problema inizializzando un repository con `git init --object-format=sha256` e avviando gitui. Inizia tracciando il rilevamento del repository e i binding libgit2 sottostanti che producono l’errore “invalid path”; il lavoro sarà completo quando gitui si avvierà nei repository SHA-256 e supporterà le operazioni Git standard senza compromettere i repository SHA-1.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
git, rust
Ambito
cli
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.