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

Aperta
#280 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, git, godot
Ambito
tooling

Direzione di ricerca

Inizia da godot-git-plugin/src/git_plugin.cpp, in particolare da GitPlugin::_commit intorno alla riga 103, e riproduci i passaggi elencati di Godot 4.4.1/plugin 3.1.1 su Windows senza Git installato. Confronta la ricerca della firma predefinita che fallisce con la configurazione funzionante del laptop; il lavoro è completato quando un nuovo progetto può eseguire il commit senza modificare manualmente .git/config.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
966
Fork
100
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di godotengine/godot-git-plugin

Tutte le issue di godotengine/godot-git-plugin

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.