Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions godot-git-plugin/src/git_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ void GitPlugin::_commit(const godot::String &msg) {
GIT2_CALL(git_commit_lookup(Capture(parent_commit), repo.get(), &parent_commit_id), "Could not lookup parent commit data");
}

GIT2_CALL(git_oid_equal(&tree_id, git_commit_tree_id(parent_commit.get())), "Nothing to commit. Please stage your changes first");

git_oid new_commit_id;
if (!has_merge) {
GIT2_CALL(
Expand Down
Loading