builtin-clone: Use is_dir_sep() instead of '/'

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This commit is contained in:
Johannes Sixt
2008-07-07 11:10:20 +02:00
parent 2d556c2239
commit 2a337eda67

View File

@@ -115,7 +115,7 @@ static char *guess_dir_name(const char *repo, int is_bundle)
if (!after_slash_or_colon)
end = p;
p += 7;
} else if (*p == '/' || *p == ':') {
} else if (is_dir_sep(*p) || *p == ':') {
if (end == limit)
end = p;
after_slash_or_colon = 1;