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
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 66/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C++
- Star
- 966
- Fork
- 100
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của godotengine/godot-git-plugin
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 47/100
godotengine/godot-git-plugin#338 ·
-
Error when switching branchĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
godotengine/godot-git-plugin#337 · 2 bình luận ·
-
bug confirmed
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
godotengine/godot-git-plugin#334 · 3 bình luận ·
-
Edit commit messageĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
godotengine/godot-git-plugin#332 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
godotengine/godot-git-plugin#328 · 1 bình luận ·
Tất cả issue của godotengine/godot-git-plugin
Issue tương tự
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
microsoft/DirectXShaderCompiler#9155 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Errors in 1.20 proseĐang mởCampaign DiD Campaign EI Campaign HttT Campaign TDG Campaign TSG Campaign WoF Enhancement Help Prose Stable 1.20
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wesnoth/wesnoth#11749 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
trabucayre/openFPGALoader#767 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent:Windows bug in progress pri:medium sev:low testing windows
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
protocolbuffers/protobuf#31768 ·
Maintainer thường phản hồi trong vòng 1 ngày