gitui-org / gitui-org/gitui

Detects modifications with submodules where there are none

Offen
#2,579 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Rust
Sterne
22.5k
Forks
773
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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**

![Image](https://github.com/user-attachments/assets/1d6ae4de-96f2-440b-9d52-4aa3d79af5de)

**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`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Es werden keine Quelldateien, Tests oder Einstiegspunkte genannt. Beginne damit, die gemeldeten Phantom-Submoduländerungen auf den WSL- oder Windows-Setups zu reproduzieren, und vergleiche die Ansicht „Submodules“ von gitui mit git status. Erledigt ist die Aufgabe, wenn saubere Submodule nicht mehr als geändert angezeigt werden und das Staging nicht mehr den gemeldeten Ownership-Fehler auslöst.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
git, rust
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.