godotengine / godotengine/godot-git-plugin

Project sometimes crashes when staging deleted or renamed files.

Open
#204 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
954
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Godot v4.0.4.stable.official [fc0b241c9] / Plugin v.3.0.0

This problem has occurred a couple of times. I deleted a file from inside the Godot Editor. Then the file deletion is listed in Commit/Unstaged Changes in the Inspector. When I attempt to stage the change, the project closes, and **cannot be re-opened** from the Godot project manager.

After that happens, the only solution I found is to restore the project from a working backup. Maybe the project could be fixed using Git commands outside of Godot, but I couldn't find a way to do that. (I'm a Git novice; a Git expert might have ideas.)

A workaround is instead of staging a file deletion using the plugin, use this Git command outside of the Godot editor:
`git rm `

Then the deleted file will move from Commit/Unstaged Changes to Commit/Staged Changes, and the change can be committed.

This problem does not always happen when deleting files. I tried to create a minimal reproduction project, but was not successful.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.