mirror of
https://github.com/git/git.git
synced 2026-03-14 02:43:25 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user