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
@@ -51,7 +51,8 @@ bool GIT_CLONE_HANDLER::PerformClone()
}
}
git_clone_options cloneOptions = GIT_CLONE_OPTIONS_INIT;
git_clone_options cloneOptions;
git_clone_init_options( &cloneOptions, GIT_CLONE_OPTIONS_VERSION );
cloneOptions.checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
cloneOptions.checkout_opts.progress_cb = clone_progress_cb;
cloneOptions.checkout_opts.progress_payload = this;