diff --git a/cache.h b/cache.h index 5e9675d76d83632ee23ed8bad6340929edf7560f..9d3d92cf9e1c7989fd46b77c61fceb0375dbcc4c 100644 --- a/cache.h +++ b/cache.h @@ -715,7 +715,7 @@ extern char *expand_user_path(const char *path); 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);