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

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

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

評価

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

調査の方向性

godot-git-plugin/src/git_plugin.cpp の _commit(103 行目付近)から始め、デフォルトの署名が Ubuntu 上で user.name を読み取る仕組みを追跡してください。Godot 4.2.2.stable.mono と報告された設定で commit の試行を再現し、設定された identity が利用可能な場合に commit が成功することを確認してください。

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

説明

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/

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