Skip to content

Commit 62b8e4c

Browse files
committed
Upgrade libgit2 binaries to 242a1ce
Fix issue libgit2#108.
1 parent 868923b commit 62b8e4c

File tree

4 files changed

+1
-13
lines changed

4 files changed

+1
-13
lines changed

Lib/NativeBinaries/x86/git2.dll

0 Bytes
Binary file not shown.

Lib/NativeBinaries/x86/git2.pdb

224 KB
Binary file not shown.

LibGit2Sharp/Repository.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ public Repository(string path)
3333
{
3434
Ensure.ArgumentNotNullOrEmptyString(path, "path");
3535

36-
// Check if the path points to the working directory instead of the git directory
37-
// by checking if the directory contains a .git directory. The same test is done
38-
// in libgit2 but if it gets to add .git to the path it will mess up the ref paths
39-
// returned from git_reference_listall (and more?) by prefixing them with a '/' such
40-
// that what would normally be refs/heads/master becomes /refs/heads/master and
41-
// LibGit2Sharp doesn't expect that. This is a workaround.
42-
// See https://github.com/libgit2/libgit2sharp/pull/108
43-
string gitDirPath = Path.Combine(path, ".git");
44-
45-
if (Directory.Exists(gitDirPath))
46-
path = gitDirPath;
47-
4836
int res = NativeMethods.git_repository_open(out handle, PosixPathHelper.ToPosix(path));
4937
Ensure.Success(res);
5038

0 commit comments

Comments
 (0)