summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bac9c06)
raw | patch | inline | side by side (parent: bac9c06)
author | Theo Niessink <theo@taletn.com> | |
Fri, 27 May 2011 16:00:38 +0000 (18:00 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 27 May 2011 17:59:13 +0000 (10:59 -0700) |
This fixes prefix_path() not recognizing e.g. \foo\bar as an absolute path
on Windows.
Signed-off-by: Theo Niessink <theo@taletn.com>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
on Windows.
Signed-off-by: Theo Niessink <theo@taletn.com>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | patch | blob | history |
index 5e9675d76d83632ee23ed8bad6340929edf7560f..9d3d92cf9e1c7989fd46b77c61fceb0375dbcc4c 100644 (file)
--- a/cache.h
+++ b/cache.h
char *enter_repo(char *path, int strict);
static inline int is_absolute_path(const char *path)
{
- return path[0] == '/' || has_dos_drive_prefix(path);
+ return is_dir_sep(path[0]) || has_dos_drive_prefix(path);
}
int is_directory(const char *);
const char *make_absolute_path(const char *path);