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

Abierto
#280 2 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp, git, godot
Área
tooling

Línea de trabajo

Comienza en godot-git-plugin/src/git_plugin.cpp, especialmente en GitPlugin::_commit alrededor de la línea 103, y reproduce los pasos indicados de Godot 4.4.1/plugin 3.1.1 en Windows sin Git instalado. Compara la búsqueda fallida de la firma predeterminada con la configuración funcional del portátil; se considera terminado cuando un proyecto nuevo puede hacer commit sin editar .git/config manualmente.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
966
Forks
100
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de godotengine/godot-git-plugin

Todos los issues de godotengine/godot-git-plugin

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.