From: Nguyễn Thái Ngọc Duy Date: Mon, 15 Nov 2010 10:12:44 +0000 (+0700) Subject: clean: avoid quoting twice X-Git-Tag: v1.7.3.3~38 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=71567e3287cbd1c06e311579d43a7d8cc0648722;p=git.git clean: avoid quoting twice qname is the result of quote_path_relative(), which does quote_c_style_counted() internally. Remove the hard-coded quotes. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/builtin/clean.c b/builtin/clean.c index c8798f549..8f602c9f4 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -153,7 +153,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix) printf("Removing %s\n", qname); if (remove_dir_recursively(&directory, rm_flags) != 0) { - warning("failed to remove '%s'", qname); + warning("failed to remove %s", qname); errors++; } } else if (show_only) { @@ -173,7 +173,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix) printf("Removing %s\n", qname); } if (unlink(ent->name) != 0) { - warning("failed to remove '%s'", qname); + warning("failed to remove %s", qname); errors++; } }