diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-02-05 19:22:04 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-02-07 00:51:01 +0400 |
commit | 62b8e4c0b8c15b6c17f37c2971d0a12e060c59be (patch) | |
tree | 7b455f1b6952ae65031f524b00b743aa4e143289 /LibGit2Sharp | |
parent | 868923b0259f97be72c633c03bc38681400050d4 (diff) |
Upgrade libgit2 binaries to 242a1ce
Fix issue #108.
Diffstat (limited to 'LibGit2Sharp')
-rw-r--r-- | LibGit2Sharp/Repository.cs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index 9c23bebe..8d433d81 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -33,18 +33,6 @@ namespace LibGit2Sharp { Ensure.ArgumentNotNullOrEmptyString(path, "path"); - // Check if the path points to the working directory instead of the git directory - // by checking if the directory contains a .git directory. The same test is done - // in libgit2 but if it gets to add .git to the path it will mess up the ref paths - // returned from git_reference_listall (and more?) by prefixing them with a '/' such - // that what would normally be refs/heads/master becomes /refs/heads/master and - // LibGit2Sharp doesn't expect that. This is a workaround. - // See https://github.com/libgit2/libgit2sharp/pull/108 - string gitDirPath = Path.Combine(path, ".git"); - - if (Directory.Exists(gitDirPath)) - path = gitDirPath; - int res = NativeMethods.git_repository_open(out handle, PosixPathHelper.ToPosix(path)); Ensure.Success(res); |