summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-11-15 10:12:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-11-16 18:22:37 (GMT)
commit71567e3287cbd1c06e311579d43a7d8cc0648722 (patch)
treeb473603da3f77bcd60c83178953aca0e41afc07d /builtin
parented296fe88dc8790f25a3546f1688dd40f8cbf2d1 (diff)
downloadgit-71567e3287cbd1c06e311579d43a7d8cc0648722.zip
git-71567e3287cbd1c06e311579d43a7d8cc0648722.tar.gz
git-71567e3287cbd1c06e311579d43a7d8cc0648722.tar.bz2
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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clean.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/clean.c b/builtin/clean.c
index c8798f5..8f602c9 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++;
}
}