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 <johannes.sixt@telecom.at>
This commit is contained in:
Johannes Sixt
2008-03-02 21:56:47 +01:00
parent 3031522444
commit 7e9987da41

View File

@@ -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)