Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Documentation: tweak use case in "git stash save --keep-index"
[gitweb.git]
/
transport.c
diff --git
a/transport.c
b/transport.c
index 3ff851935ff8d018a926084b89cb31bbb3d30a07..4145eed9794a956b05967f049fe2caedcaa67feb 100644
(file)
--- a/
transport.c
+++ b/
transport.c
@@
-709,7
+709,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)