Cannot commit changes when `user.name` and/or `user.email` are not set in Git configuration

Đang mở
#233 3 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
28/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cpp, git
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu với godot-git-plugin/src/git_plugin.cpp tại _commit, khoảng dòng 103, và theo dõi cách chữ ký mặc định đọc user.name trên Ubuntu. Tái hiện lần thử commit với Godot 4.2.2.stable.mono và cấu hình đã được báo cáo, sau đó xác minh rằng commit thành công khi identity đã cấu hình khả dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug confirmed

Hi all! I just installed this plugin to a project that is already using Git Plugin and is configured to push/pull with GitHub. I started this project in another machine (Windows 10) and was able to commit/push/pull with no worries i managed to clone and open the project no prob, but when i tried to commit changes he following error showed up:
core/variant/variant_utility.cpp:1091 - GitPlugin: Could not get default signature. Error -3: config value 'user.name' was not found in godot-git-plugin/src/git_plugin.cpp:_commit#L103

I configured username and pat in their respective fields in Version Control Settings, just like in the other machine. Even configured git config --global, to no avail. The remote is the https link with .git in the end (green button on repo)
I'm using Ubuntu 22.04.4 LTS with Godot 4.2.2.stable.mono
If i can provide any info that might help please ask o/

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.