From cb6f8c7de21dc66d9c20047630833bab5bb2a818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sun, 5 Jan 2025 23:39:06 +0100 Subject: [PATCH] [LibGit2] Adapt RemoteCallbacks Suggested-by: Antonio Rojas --- stdlib/LibGit2/src/types.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/LibGit2/src/types.jl b/stdlib/LibGit2/src/types.jl index 633f14acaa1c4..181baa4991a9b 100644 --- a/stdlib/LibGit2/src/types.jl +++ b/stdlib/LibGit2/src/types.jl @@ -237,6 +237,9 @@ Matches the [`git_remote_callbacks`](https://libgit2.org/libgit2/#HEAD/type/git_ @static if LibGit2.VERSION >= v"0.99.0" resolve_url::Ptr{Cvoid} = C_NULL end + @static if LibGit2.VERSION >= v"1.9.0" + update_refs::Ptr{Cvoid} = C_NULL + end end @assert Base.allocatedinline(RemoteCallbacks)