From 07ae01ed62b247d3abe1dd224eca63b7701c1ca4 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Thu, 30 Oct 2025 10:45:55 +0300 Subject: [PATCH] Bring the GitRemoteCallbacks structure in sync with libgit2 The marshaling was messed up due to missing extra field. Fixes #2161 --- LibGit2Sharp/Core/GitRemoteCallbacks.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LibGit2Sharp/Core/GitRemoteCallbacks.cs b/LibGit2Sharp/Core/GitRemoteCallbacks.cs index 4900ad562..40d5dd91c 100644 --- a/LibGit2Sharp/Core/GitRemoteCallbacks.cs +++ b/LibGit2Sharp/Core/GitRemoteCallbacks.cs @@ -33,10 +33,12 @@ internal struct GitRemoteCallbacks internal IntPtr transport; - private IntPtr padding; // TODO: add git_remote_ready_cb + internal IntPtr remote_ready; // TODO: add git_remote_ready_cb internal IntPtr payload; internal NativeMethods.url_resolve_callback resolve_url; + + private IntPtr update_refs; } }