From 2a337eda67f4e62520fb38a48c51577f572065da Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Mon, 7 Jul 2008 11:10:20 +0200 Subject: [PATCH] builtin-clone: Use is_dir_sep() instead of '/' Signed-off-by: Johannes Sixt --- builtin-clone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-clone.c b/builtin-clone.c index 643c7d4169..fddf47fabf 100644 --- a/builtin-clone.c +++ b/builtin-clone.c @@ -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; -- 2.11.4.GIT