godotengine / godot-git-plugin

Git implementation of the VCS interface in Godot
MIT License
697 stars 73 forks source link

MacOS: could not get default signature. config value user.name was not found #223

Closed JosVerheij closed 6 months ago

JosVerheij commented 7 months ago

Hello, I'm trying to setup git integration on macOS sanoma 14.2.1 using Godot 4.2.1.

I have setup the VCS settings by entering my (GitHub) username, password and pub & private SSH keys. Afterwards I enabled the "Connect to VCS" slider.

The plugin then seems to partly work. I can see unstaged files and add them to the staged files list. However, afterwards I am unable to commit anything. Entering a message and hitting "Commit" empties the message window, but does otherwise nothing.

The following error is displayed after hitting commit: 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

As far as I am unware, even without setting up any (remote) branch, committing should work. It does not however. I can't tell whether this is a fault on my end, or if this is a bug. If you need anymore information, please let me know.

JosVerheij commented 6 months ago

Apparently after migration of Macos system git config was not setup properly. Had to walk through step 1: https://github.com/godotengine/godot-git-plugin/wiki/Git-plugin-v3#prerequisites