We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c8603 commit e310401Copy full SHA for e310401
LibGit2Sharp/Core/Proxy.cs
@@ -1367,12 +1367,15 @@ public static IntPtr git_odb_backend_malloc(IntPtr backend, UIntPtr len)
1367
1368
public static bool git_odb_exists(ObjectDatabaseSafeHandle odb, ObjectId id)
1369
{
1370
- GitOid oid = id.Oid;
+ using (ThreadAffinity())
1371
+ {
1372
+ GitOid oid = id.Oid;
1373
- int res = NativeMethods.git_odb_exists(odb, ref oid);
- Ensure.BooleanResult(res);
1374
+ int res = NativeMethods.git_odb_exists(odb, ref oid);
1375
+ Ensure.BooleanResult(res);
1376
- return (res == 1);
1377
+ return (res == 1);
1378
+ }
1379
}
1380
1381
public static ICollection<TResult> git_odb_foreach<TResult>(
0 commit comments