Code

Merge branch 'maint'
[git.git] / transport.c
index b3e3e61f9dddec8230532f7d248beba801a38123..71433d99978ddcc53c80fd6de4aee98871c6d8cf 100644 (file)
@@ -708,7 +708,8 @@ static int is_local(const char *url)
 {
        const char *colon = strchr(url, ':');
        const char *slash = strchr(url, '/');
-       return !colon || (slash && slash < colon);
+       return !colon || (slash && slash < colon) ||
+               has_dos_drive_prefix(url);
 }
 
 static int is_file(const char *url)