Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
clean: avoid quoting twice
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Mon, 15 Nov 2010 10:12:44 +0000
(17:12 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 16 Nov 2010 18:22:37 +0000
(10:22 -0800)
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>
builtin/clean.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
ed296fe
)
diff --git
a/builtin/clean.c
b/builtin/clean.c
index c8798f549ed12192a098ab90b35c0437b8059351..8f602c9f4174975597601fc1c0c2d26ccc51edbe 100644
(file)
--- 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++;
}
}