Error 3: config value 'user.name' was not found in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_commit#L103

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, git, godot
領域
tooling

調査の方向性

godot-git-plugin/src/git_plugin.cpp から始め、特に 103 行目付近の GitPlugin::_commit を確認し、Git をインストールしていない Windows 上で、記載されている Godot 4.4.1/plugin 3.1.1 の手順を再現します。失敗するデフォルト署名の検索と、動作するラップトップのセットアップを比較します。新しいプロジェクトが .git/config を手動で編集せずに commit できれば完了です。

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

説明

bug

Godot v4.4.1
I had entered my username and github PAT into the version control settings and connected to VCS. When I went to commit some changes, I was met with the error:

ERROR: core/variant/variant_utility.cpp:1098 - GitPlugin: Could not get default signature. Error -3: config value 'user.name' was not found in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_commit#L103

I tried restarting godot. I also went to file explorer and checked that I had a .git file, so that means the repository was created.


I eventually managed to fix this. I went to the .git/config file and opened it in VS Code. After that, I Added the circled part to the config file, and it started working. I was able to commit and push to the repo
Image



Edit 5/20/25
I was able to recreate the issue on my computer.
Equipment:

  • Windows 10
  • Godot v4.4.1
  • Godot Git plugin v3.1.1

Steps:

  1. Create a new project
  2. Install Godot Git plugin
  3. Project -> Version Control -> Create/Override Version Control Metadata
  4. Click 'OK'
  5. Project -> Version Control -> Version Control Settings
  6. Click 'Connect to VCS'
  7. Enter your username and your github PAT for the password
  8. Go to the 'Commit' tab and stage all the changes
  9. Enter a Commit Message and click 'Commit Changes'

You should have the error message.
Video of me replicating the error


However, I tried this on a separate laptop and it wouldn't repeat. I don't have git installed on my pc, but I do have git installed on my laptop, so that might me why it works on my laptop, but not my pc.

主要言語
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 を短くまとめたダイジェスト。