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>2011-05-20 23:36:00 +0400
committernulltoken <emeric.fermas@gmail.com>2011-05-20 23:39:42 +0400
commit49410b0afecfdd963175c75104787b26f3cda59a (patch)
treea9d4178ea061a7fcdf048406dbab74545b2c2914 /LibGit2Sharp/Reference.cs
parent2a18c09b41dd594fecf23ff5aad42cdc8fce75cf (diff)
Fix an IIS related interop issue
Credit goes to @yysun for having spotted this. Special thanks to @tclem for his wizardry.
Diffstat (limited to 'LibGit2Sharp/Reference.cs')
-rw-r--r--LibGit2Sharp/Reference.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/LibGit2Sharp/Reference.cs b/LibGit2Sharp/Reference.cs
index 442f5367..fd73026a 100644
--- a/LibGit2Sharp/Reference.cs
+++ b/LibGit2Sharp/Reference.cs
@@ -26,8 +26,8 @@ namespace LibGit2Sharp
return default(T);
}
- var name = NativeMethods.git_reference_name(ptr);
- var type = NativeMethods.git_reference_type(ptr);
+ string name = NativeMethods.git_reference_name(ptr).MarshallAsString();
+ GitReferenceType type = NativeMethods.git_reference_type(ptr);
Reference reference;
string targetIdentifier;
@@ -36,7 +36,7 @@ namespace LibGit2Sharp
{
case GitReferenceType.Symbolic:
IntPtr resolveRef;
- targetIdentifier = NativeMethods.git_reference_target(ptr);
+ targetIdentifier = NativeMethods.git_reference_target(ptr).MarshallAsString();
int res = NativeMethods.git_reference_resolve(out resolveRef, ptr);
if (res == (int) GitErrorCode.GIT_ENOTFOUND)