From: Johannes Sixt Date: Fri, 18 Jul 2008 07:34:43 GMT Subject: [PATCH] builtin-clone: Use is_dir_sep() instead of '/' Message-ID: <1216366485-12201-3-git-send-email-johannes.sixt@telecom.at> In-Reply-To: <1216366485-12201-2-git-send-email-johannes.sixt@telecom.at> Signed-off-by: Johannes Sixt --- builtin-clone.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin-clone.c b/builtin-clone.c index 643c7d4..fddf47f 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; -- 1.5.6.1.275.g0a3e0f