broken submodule support: Initializes a fresh git repository at an incorrect path instead of opening the correct one if the godot project is a submodule

オープン
#335 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp
領域
tooling

調査の方向性

Reproduce the issue using the listed steps: open a Godot project installed in a Git submodule and observe where the plugin initializes its repository. Read the attached analysis and patch, then trace the plugin's repository-opening and initialization entry point to understand how it resolves the submodule path. Done means the plugin opens the submodule's repository rather than creating a repository in the parent repository's .git hierarchy.

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

説明

bug
Godot version

4.7.2.stable.arch_linux.ed1daf0bf

Godot Git Plugin version

4113e1109353e7f5ff23f29147e1d9b5588c4cee

System information

Archlinux

Issue description

godot-git-plugin does not work correctly if the godot project it is used in is itself a submodule - it will fail to open the submodule repository and instead initialize a new git repository within the parent repository's .git/ hierarchy.

(The use case is using godot-git-plugin in the demo scene for a godot plugin I'm developing, where the plugin is the main repository and the demo scene is a submodule in it - godot-git-plugin would be helpful here for having less-technical coworkers more easily tweak and extend the demo scene.)

I set a local Qwen3.8 instance on looking into this and fixing it and am attaching its analysis and the patch it produced (effectively, it's just a few lines), in case you find them helpful - the patch looks reasonable to me and seems to indeed solve this issue for me. (Since I'm neither familiar with the library used nor with the internals of godot-git-plugin myself, I won't pursue a PR, though.)

ai_analysis.txt
a9891dbcef.patch

Steps to reproduce
  • Create a git repository
  • add another git repository as submodule
  • in the submodule: create a godot project and install godot-git-plugin
  • observe that the plugin initializes a git repository somewhere in the parent repository's .git/ hierarchy instead of correctly opening the submodule
主要言語
C++
スター
966
フォーク
100
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

godotengine/godot-git-plugin のほかの issue

godotengine/godot-git-plugin の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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