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:
Diffstat (limited to 'LibGit2Sharp/Remote.cs')
-rw-r--r--LibGit2Sharp/Remote.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/LibGit2Sharp/Remote.cs b/LibGit2Sharp/Remote.cs
index 1b9d1b45..3779c274 100644
--- a/LibGit2Sharp/Remote.cs
+++ b/LibGit2Sharp/Remote.cs
@@ -18,13 +18,13 @@ namespace LibGit2Sharp
return null;
}
- IntPtr namePtr = NativeMethods.git_remote_name(handle);
- IntPtr urlPtr = NativeMethods.git_remote_url(handle);
+ string name = NativeMethods.git_remote_name(handle);
+ string url = NativeMethods.git_remote_url(handle);
var remote = new Remote
{
- Name = namePtr.MarshallAsString(),
- Url = urlPtr.MarshallAsString(),
+ Name = name,
+ Url = url,
};
return remote;