diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-06-29 17:09:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-06-29 17:09:17 -0700 |
commit | 033c2dc4364042b9e6dbd44e82e1974f78a72567 (patch) | |
tree | 8a7dc969376cd254dd46e5f4038f9592929f8a7a /cache.h | |
parent | 1fd7ef2e8f6b8b67f4d3be7b9ab5bbd9d8f639ec (diff) | |
parent | e0f530ff8afbd252170f57e70a8609a83a7cabe1 (diff) | |
download | git-033c2dc4364042b9e6dbd44e82e1974f78a72567.tar.gz |
Merge branch 'ef/maint-win-verify-path'
* ef/maint-win-verify-path:
verify_dotfile(): do not assume '/' is the path seperator
verify_path(): simplify check at the directory boundary
verify_path: consider dos drive prefix
real_path: do not assume '/' is the path seperator
A Windows path starting with a backslash is absolute
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -747,7 +747,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 *real_path(const char *path); |