Skip to content

Commit

Permalink
Change print logs when repo is found
Browse files Browse the repository at this point in the history
  • Loading branch information
twaritwaikar committed Dec 22, 2022
1 parent 67b0cdf commit 8fcf6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions godot-git-plugin/src/git_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,15 +682,15 @@ bool GitPlugin::_initialize(const godot::String &project_path) {
if (git_repository_discover(&discovered_repo_path, CString(project_path).data, 1, nullptr) == 0) {
repo_project_path = godot::String(discovered_repo_path.ptr);

godot::UtilityFunctions::print("Found a higher level repository at " + godot::String(discovered_repo_path.ptr) + ".");
godot::UtilityFunctions::print("Found a repository at " + godot::String(discovered_repo_path.ptr) + ".");
git_buf_dispose(&discovered_repo_path);
} else {
repo_project_path = project_path;

godot::UtilityFunctions::push_warning("Creating a new repository at " + godot::String(project_path) + ".");
godot::UtilityFunctions::push_warning("Could not find any higher level repositories.");
}

godot::UtilityFunctions::print("Selected repository path: " + godot::String(repo_project_path) + ".");
GIT2_CALL_R(git_repository_init(Capture(repo), CString(repo_project_path).data, 0), "Could not initialize repository", false);

git_reference_ptr head;
Expand Down

0 comments on commit 8fcf6e4

Please sign in to comment.