Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions LibGit2Sharp/Core/Proxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1367,12 +1367,15 @@ public static IntPtr git_odb_backend_malloc(IntPtr backend, UIntPtr len)

public static bool git_odb_exists(ObjectDatabaseSafeHandle odb, ObjectId id)
{
GitOid oid = id.Oid;
using (ThreadAffinity())
{
GitOid oid = id.Oid;

int res = NativeMethods.git_odb_exists(odb, ref oid);
Ensure.BooleanResult(res);
int res = NativeMethods.git_odb_exists(odb, ref oid);
Ensure.BooleanResult(res);

return (res == 1);
return (res == 1);
}
}

public static ICollection<TResult> git_odb_foreach<TResult>(
Expand Down