From 5b6ce70b8997254ce48f8c24ba4198080e646fdd Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Thu, 22 Oct 2020 09:18:11 -0400 Subject: refactor: Use undeprecated options init (#656) This PR move form linking against the deprecated `init_options` functions to the renamed `options_init` functions. For more context see libgit2/libgit2@0b5ba0d744e69da5dc8c08d167c83dd87ed83af2 and libgit2/libgit2@c6184f0c4b209e462bf3f42ab20df2d13d8ee918. --- clone.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clone.go') diff --git a/clone.go b/clone.go index 1ff5124..6141d0f 100644 --- a/clone.go +++ b/clone.go @@ -77,7 +77,7 @@ func remoteCreateCallback(cremote unsafe.Pointer, crepo unsafe.Pointer, cname, c } func populateCloneOptions(ptr *C.git_clone_options, opts *CloneOptions) { - C.git_clone_init_options(ptr, C.GIT_CLONE_OPTIONS_VERSION) + C.git_clone_options_init(ptr, C.GIT_CLONE_OPTIONS_VERSION) if opts == nil { return -- cgit v1.2.3