gitui-org / gitui-org/gitui

Detects modifications with submodules where there are none

Abierto
#2,579 0 comentarios 1 reacción 0 asignados Ver en GitHub
bug
Lenguaje dominante
Rust
Estrellas
22.5k
Forks
773
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

No se nombran archivos fuente, pruebas ni puntos de entrada. Empieza reproduciendo las modificaciones fantasma de los submódulos en las configuraciones de WSL o Windows indicadas y compara la vista Submodules de gitui con git status. Se considera terminado cuando los submódulos limpios ya no aparecen como modificados y el staging ya no provoca el error de ownership indicado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
git, rust
Área
cli
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.