Skip to content

Commit

Permalink
clean: avoid quoting twice
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed Nov 16, 2010
1 parent ed296fe commit 71567e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/clean.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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++;
}
}
Expand Down

0 comments on commit 71567e3

Please sign in to comment.