]> git.ipfire.org Git - thirdparty/git.git/blobdiff - connect.c
mingw: handle `subst`-ed "DOS drives"
[thirdparty/git.git] / connect.c
index 49b28b83be2717027ac33570b1041604db5a062d..a053cc256d42b6a15375de7d0ce74f18833c1821 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -264,7 +264,7 @@ int url_is_local_not_ssh(const char *url)
        const char *colon = strchr(url, ':');
        const char *slash = strchr(url, '/');
        return !colon || (slash && slash < colon) ||
-               has_dos_drive_prefix(url);
+               (has_dos_drive_prefix(url) && is_valid_path(url));
 }
 
 static const char *prot_name(enum protocol protocol)