diff options
author | Russell Belfer <rb@github.com> | 2013-09-03 14:00:27 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-09-03 14:00:27 -0700 |
commit | cae529385437a24094ef2997dbf546723f7fd1ee (patch) | |
tree | 95f6099541b20bdd11d15679e795b805f635f70b /src/path.c | |
parent | 0d1af399e958b50540c83d5eef51cf119da76667 (diff) | |
download | libgit2-cae529385437a24094ef2997dbf546723f7fd1ee.tar.gz |
Fix resolving relative windows network paths
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c index 50a990b27..7c1ec2cd0 100644 --- a/src/path.c +++ b/src/path.c @@ -242,8 +242,8 @@ int git_path_root(const char *path) #ifdef GIT_WIN32 /* Are we dealing with a windows network path? */ - else if ((path[0] == '/' && path[1] == '/') || - (path[0] == '\\' && path[1] == '\\')) + else if ((path[0] == '/' && path[1] == '/' && path[2] != '/') || + (path[0] == '\\' && path[1] == '\\' && path[2] != '\\')) { offset += 2; |