Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
shell: do not play duplicated definition games to shrink the executable
[gitweb.git]
/
transport.c
diff --git
a/transport.c
b/transport.c
index b3e3e61f9dddec8230532f7d248beba801a38123..71433d99978ddcc53c80fd6de4aee98871c6d8cf 100644
(file)
--- a/
transport.c
+++ b/
transport.c
@@
-708,7
+708,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)