Git plugin makes unwanted changes in git config
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
- 45/100
Hướng nghiên cứu
Tái hiện vấn đề với core.filemode = false trong .git/config, sau đó lần theo đường dẫn mã của plugin Git được chạy khi dự án Godot mở và truy cập vào tệp đó. So sánh tệp trước và sau khi mở, bao gồm cả quyền của tệp; được coi là hoàn tất khi cấu hình Git hiện có được giữ nguyên mà không tạo lại hoặc thay đổi .git/config.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- 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
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
godotengine/godot-git-plugin#335 ·
-
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 ·
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