From 7e9987da41172f831f2d900f0304f05d0543319a Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sun, 2 Mar 2008 21:56:47 +0100 Subject: [PATCH] Fix clone from bundle if the URL is actually an absolute Windows path. This URL was mistaken as an SSH connection. Signed-off-by: Johannes Sixt --- transport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transport.c b/transport.c index 0a5cf0a9c2..74fa9eef28 100644 --- a/transport.c +++ b/transport.c @@ -693,7 +693,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)