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-06-04 02:00:33 +0300
committernulltoken <emeric.fermas@gmail.com>2015-06-04 02:00:33 +0300
commit7202df7e971c1cbb32a7e26236064cde326a4e5a (patch)
tree6320104ddb8233cc965aeb181b9ad3f63ba8fc65
parent2c98992dd8b21dcdba04834514e057482d89a36d (diff)
parent1de917e700e4fdb440d95ffe6cee48034042ac92 (diff)
Merge pull request #1070 from whoisj/fix-crash-submodule-delete
Fixes Issue #1071: Deadlock in Submodules when Directory Structure Changes
-rw-r--r--LibGit2Sharp/Core/Handles/OidSafeHandle.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/Core/Handles/OidSafeHandle.cs b/LibGit2Sharp/Core/Handles/OidSafeHandle.cs
index a3095950..ced01e50 100644
--- a/LibGit2Sharp/Core/Handles/OidSafeHandle.cs
+++ b/LibGit2Sharp/Core/Handles/OidSafeHandle.cs
@@ -7,7 +7,7 @@ namespace LibGit2Sharp.Core.Handles
{
private GitOid? MarshalAsGitOid()
{
- return IsInvalid ? null : (GitOid?)MarshalAsGitOid(handle);
+ return IsZero || IsInvalid ? null : (GitOid?)MarshalAsGitOid(handle);
}
private static GitOid MarshalAsGitOid(IntPtr data)