@matheusbsbs / matheus-bagliano / commits / 71567e3287
Fork 0

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>

Nguyễn Thái Ngọc Duy committed Nov 15, 2010 at 17:12 UTC 71567e3287cbd1c06e311579d43a7d8cc0648722
1 file changed +2 -2
builtin/clean.c
+2 -2
@@ -153,7 +153,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
153 printf("Removing %s\n", qname);
154 if (remove_dir_recursively(&directory,
155 rm_flags) != 0) {
156 - warning("failed to remove '%s'", qname);
156 + warning("failed to remove %s", qname);
157 errors++;
158 }
159 } else if (show_only) {
@@ -173,7 +173,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
173 printf("Removing %s\n", qname);
174 }
175 if (unlink(ent->name) != 0) {
176 - warning("failed to remove '%s'", qname);
176 + warning("failed to remove %s", qname);
177 errors++;
178 }
179 }