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:
authoryorah <yoram.harmelin@gmail.com>2012-08-29 20:05:47 +0400
committernulltoken <emeric.fermas@gmail.com>2012-08-29 22:14:31 +0400
commiteb304fb0c92df60339836b962a96a3d43f48d7f7 (patch)
treeb49ad08201406d354304010c5f17d241d1b99c3c /LibGit2Sharp/RepositoryInformation.cs
parent8fa70ffce8bca7ff66fe4b84293d14b66bbed29f (diff)
Make retrieval of error message thread-safe
Fix #203
Diffstat (limited to 'LibGit2Sharp/RepositoryInformation.cs')
-rw-r--r--LibGit2Sharp/RepositoryInformation.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/LibGit2Sharp/RepositoryInformation.cs b/LibGit2Sharp/RepositoryInformation.cs
index b371eb9a..4b0fa581 100644
--- a/LibGit2Sharp/RepositoryInformation.cs
+++ b/LibGit2Sharp/RepositoryInformation.cs
@@ -20,8 +20,8 @@ namespace LibGit2Sharp
this.repo = repo;
IsBare = isBare;
- FilePath path = NativeMethods.git_repository_path(repo.Handle);
- FilePath workingDirectoryPath = NativeMethods.git_repository_workdir(repo.Handle);
+ FilePath path = Proxy.git_repository_path(repo.Handle);
+ FilePath workingDirectoryPath = Proxy.git_repository_workdir(repo.Handle);
Path = path.Native;
WorkingDirectory = workingDirectoryPath == null ? null : workingDirectoryPath.Native;
@@ -53,7 +53,7 @@ namespace LibGit2Sharp
/// </value>
public virtual bool IsEmpty
{
- get { return NativeMethods.RepositoryStateChecker(repo.Handle, NativeMethods.git_repository_is_empty); }
+ get { return Proxy.git_repository_is_empty(repo.Handle); }
}
/// <summary>
@@ -61,7 +61,7 @@ namespace LibGit2Sharp
/// </summary>
public virtual bool IsHeadDetached
{
- get { return NativeMethods.RepositoryStateChecker(repo.Handle, NativeMethods.git_repository_head_detached); }
+ get { return Proxy.git_repository_head_detached(repo.Handle); }
}
/// <summary>
@@ -69,7 +69,7 @@ namespace LibGit2Sharp
/// </summary>
public virtual bool IsHeadOrphaned
{
- get { return NativeMethods.RepositoryStateChecker(repo.Handle, NativeMethods.git_repository_head_orphan); }
+ get { return Proxy.git_repository_head_orphan(repo.Handle); }
}
}
}