git-ai-project/git-ai

Exclude empty .git dirs from valid git repo detection

Chiusa

#1415 aperta il 21 mag 2026

 (0 commenti) (0 reazioni) (0 assegnatari)Rust (231 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (2272 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Git AI uses the presence of a .git dir to determine whether a directory is a git repo to save the overhead of shelling out to git. Add additional guardrails (without degrading performance) to ensure that the .git is real

Original discussion: https://github.com/git-ai-project/git-ai/issues/1041#issuecomment-4481683285

Guida contributor