Git plugin makes unwanted changes in git config
まだ誰も着手していません。
評価
調査の方向性
.git/config で core.filemode = false にした状態で問題を再現し、次に Godot プロジェクトを開いたときに実行され、そのファイルにアクセスする Git plugin のコードパスを追跡します。開く前と開いた後のファイルを、権限も含めて比較します。既存の Git 設定を保持し、.git/config を再作成または変更しなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Environment:
- Godot version: v4.4.1.stable.official [49a5bc7b6]
- OS: Ubuntu Budgie
- Plugin: Git plugin (installed from AssetLib)
I'm using modified .git/config file where I set core.filemode = false.
The Git plugin automatically changes this parameter back to true when I open the project in Godot.
When I attempted to prevent modification by setting the file attributes to 444 (read-only), the plugin still managed to modify the file and reset the attributes to 664. This suggests the plugin is deleting and recreating the config file rather than modifying it in place.
The issue resolves when I remove the Git plugin. This behavior is particularly problematic because:
- I need to maintain core.filemode = false as my project resides on an NTFS filesystem (shared with Windows)
- I'm concerned the plugin might silently modify other configuration options without my knowledge
Steps to Reproduce:
- Set core.filemode = false in .git/config
- Open the project in Godot with Git plugin enabled
- Observe the parameter has been changed back to true
Expected Behavior:
The Git plugin should respect existing Git configuration settings and not automatically modify .git/config without user consent.
Workaround:
Currently, the only solution is setting .git/config file owner to root (with exception of removal of Git plugin).
- 主要言語
- C++
- スター
- 966
- フォーク
- 100
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
godotengine/godot-git-plugin のほかの issue
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 47/100
godotengine/godot-git-plugin#338 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
godotengine/godot-git-plugin#337 · コメント 2 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
godotengine/godot-git-plugin#335 ·
-
bug confirmed
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
godotengine/godot-git-plugin#334 · コメント 3 件 ·
-
Edit commit messageオープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
godotengine/godot-git-plugin#332 ·
godotengine/godot-git-plugin の issue をすべて見る
似ている issue
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/DirectXShaderCompiler#9155 ·
メンテナーはふだん 2 日以内に返信
-
Errors in 1.20 proseオープンCampaign DiD Campaign EI Campaign HttT Campaign TDG Campaign TSG Campaign WoF Enhancement Help Prose Stable 1.20
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
wesnoth/wesnoth#11749 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
trabucayre/openFPGALoader#767 ·
メンテナーはふだん 1 日以内に返信
-
agent:Windows bug in progress pri:medium sev:low testing windows
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
protocolbuffers/protobuf#31768 ·
メンテナーはふだん 1 日以内に返信