Detects modifications with submodules where there are none
- Langage dominant
- Rust
- Étoiles
- 22.5k
- Forks
- 774
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
**Describe the bug**
I have several submodules in my project. For some submodules, `gitui` keeps listing "M" modifications. When looking at the change, it shows: `size: 0 B -> 0 B (+0 B)`. When I check with `git status`, there is nothing listed as modified.
Also, when I check the Submodules in `gitui`, all the submodules that are listed as modified have the following info:
> Commit:
0000000000000000000000000000000000000000
This contradicts the information shown in the list where the correct hash is displayed (see screenshot below).
When I try to stage these phantom-modifications, I get this error:
>Error
staging error:
git error:repository path '' is not owned by current user; class=Config (7); code=Owner (-36)
**Screenshots**

**Context (please complete the following information):**
- OS/Distro + Version: Linux (WSL), Windows
- GitUI Version:
- Linux: `nightly 2025-01-21 ()`
- Windows: `0.27.0 2025-01-14 (99f6967)`
- Rust version: `1.85.1`
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Aucun fichier source, test ou point d’entrée n’est nommé. Commencez par reproduire les modifications fantômes des sous-modules sur les configurations WSL ou Windows signalées, puis comparez la vue Submodules de gitui avec git status. C’est terminé lorsque les sous-modules propres ne sont plus affichés comme modifiés et que le staging ne déclenche plus l’erreur d’ownership signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, rust
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100