diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2010-12-21 06:52:07 +0100 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2010-12-21 06:52:07 +0100 |
| commit | 2c08c3f0742d812bd3790c2541af87634fbb3ab4 (patch) | |
| tree | 9f58e73034e437f5e89ecdc3e2fe2593148272e8 | |
| parent | 23a1edbd04250ac94071dae89d1d3014715e8112 (diff) | |
| download | libgit2-2c08c3f0742d812bd3790c2541af87634fbb3ab4.tar.gz | |
Made is_windows_rooted_path() able to cope with awkward but valid relative paths such as "C:..\File.txt".
Path "C:..\File.txt" refers to a file called File.txt located in the parent directory of the current directory on drive C:.
| -rw-r--r-- | src/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index 7a6ab731c..5f5944c62 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -317,7 +317,7 @@ int gitfo_dirent( static int is_windows_rooted_path(const char* path) { /* Does the root of the path look like a windows drive ? */ - if (isalpha(path[0]) && (path[1] == ':') && (path[2] == '/')) + if (isalpha(path[0]) && (path[1] == ':')) return GIT_SUCCESS; return GIT_ERROR; |
