Git plugin makes unwanted changes in git config

Đang mở
#295 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp, git
Lĩnh vực
tooling

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:

  1. I need to maintain core.filemode = false as my project resides on an NTFS filesystem (shared with Windows)
  2. I'm concerned the plugin might silently modify other configuration options without my knowledge

Steps to Reproduce:

  1. Set core.filemode = false in .git/config
  2. Open the project in Godot with Git plugin enabled
  3. 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của godotengine/godot-git-plugin

Tất cả issue của godotengine/godot-git-plugin

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.