diff options
author | nulltoken <emeric.fermas@gmail.com> | 2015-06-04 02:00:33 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2015-06-04 02:00:33 +0300 |
commit | 7202df7e971c1cbb32a7e26236064cde326a4e5a (patch) | |
tree | 6320104ddb8233cc965aeb181b9ad3f63ba8fc65 | |
parent | 2c98992dd8b21dcdba04834514e057482d89a36d (diff) | |
parent | 1de917e700e4fdb440d95ffe6cee48034042ac92 (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.cs | 2 |
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) |