mirror of
https://github.com/git/git.git
synced 2026-03-14 02:43:25 +01:00
builtin-clone: Use is_dir_sep() instead of '/'
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user