]> asedeno.scripts.mit.edu Git - git.git/blobdiff - cache.h
Merge git://repo.or.cz/git-gui
[git.git] / cache.h
diff --git a/cache.h b/cache.h
index 188428dd26b7d9bf8dc0b9cd1a02ebca6d459400..35a91320a50d3f0f720e4fc3672f7667934e04f9 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -522,7 +522,7 @@ int safe_create_leading_directories_const(const char *path);
 char *enter_repo(char *path, int strict);
 static inline int is_absolute_path(const char *path)
 {
-       return path[0] == '/';
+       return path[0] == '/' || has_dos_drive_prefix(path);
 }
 const char *make_absolute_path(const char *path);
 const char *make_nonrelative_path(const char *path);