mirror of
https://github.com/godotengine/godot-git-plugin.git
synced 2026-01-03 10:09:43 +03:00
Fix dirty read on initialiation status for the libgit2 instance
This commit is contained in:
Binary file not shown.
@@ -272,7 +272,7 @@ bool GitAPI::_initialize(const String p_project_root_path) {
|
||||
WARN_PRINT("Multiple libgit2 instances are running");
|
||||
}
|
||||
|
||||
if (is_initialized) {
|
||||
if (repo) {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -55,8 +55,8 @@ extern "C" int diff_line_callback_function(const git_diff_delta *delta, const gi
|
||||
result["line_count"] = line->num_lines;
|
||||
result["old_line_number"] = line->old_lineno;
|
||||
result["offset"] = line->content_offset;
|
||||
|
||||
|
||||
godot::GitAPI::get_singleton()->diff_contents.push_back(result);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user