Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2015-05-16 16:10:22 +0300
committernulltoken <emeric.fermas@gmail.com>2015-05-29 01:07:47 +0300
commit56b908c68a89511a4351edf21faaf8ee2e012469 (patch)
treeff66ad881984baa566242b9d8bac6db5548f3a5a
parent73740ffed9574202bed2e74dfafb5ece021ae892 (diff)
Fix wrong interop definition
-rw-r--r--LibGit2Sharp/Core/NativeMethods.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/LibGit2Sharp/Core/NativeMethods.cs b/LibGit2Sharp/Core/NativeMethods.cs
index a9453529..720f083c 100644
--- a/LibGit2Sharp/Core/NativeMethods.cs
+++ b/LibGit2Sharp/Core/NativeMethods.cs
@@ -272,7 +272,9 @@ namespace LibGit2Sharp.Core
internal static extern OidSafeHandle git_commit_tree_id(GitObjectSafeHandle commit);
[DllImport(libgit2)]
- internal static extern int git_config_delete_entry(ConfigurationSafeHandle cfg, string name);
+ internal static extern int git_config_delete_entry(
+ ConfigurationSafeHandle cfg,
+ [MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof (StrictUtf8Marshaler))] string name);
[DllImport(libgit2)]
internal static extern int git_config_find_global(GitBuf global_config_path);