]> git.ipfire.org Git - thirdparty/git.git/blobdiff - connect.c
Merge branch 'pm/am-in-body-header-doc-update'
[thirdparty/git.git] / connect.c
index da7daa2b683f9aed7e1e63656bbefd83a1a4fa56..b6451ab5e8909017edc678b3021384f3920fbe75 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -511,7 +511,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)