gitui-org / gitui-org/gitui

Detects modifications with submodules where there are none

オープン
#2,579 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
bug
主要言語
Rust
スター
22.5k
フォーク
773
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ソースファイル、テスト、エントリポイントは指定されていません。まず、報告された WSL または Windows のセットアップで phantom submodule modifications を再現し、gitui の Submodules ビューと git status を比較してください。クリーンなサブモジュールが変更済みとして表示されなくなり、staging によって報告された ownership error が発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
git, rust
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。