Cleanup libgit init calls

This commit is contained in:
Seth Hillbrand
2024-05-06 10:18:38 -07:00
parent ba5ad70b68
commit 8a306eecb6
8 changed files with 31 additions and 17 deletions
+2 -1
View File
@@ -63,7 +63,8 @@ static int checkout_notify_cb(git_checkout_notify_t why, const char *path,
void GIT_REVERT_HANDLER::PerformRevert()
{
git_object* head_commit = NULL;
git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT;
git_checkout_options opts;
git_checkout_init_options(&opts, GIT_CHECKOUT_OPTIONS_VERSION);
// Get the HEAD commit
if (git_revparse_single(&head_commit, m_repository, "HEAD") != 0) {