Skip to content

Commit 71567e3

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ed296fe commit 71567e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/clean.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
153153
printf("Removing %s\n", qname);
154154
if (remove_dir_recursively(&directory,
155155
rm_flags) != 0) {
156-
warning("failed to remove '%s'", qname);
156+
warning("failed to remove %s", qname);
157157
errors++;
158158
}
159159
} else if (show_only) {
@@ -173,7 +173,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
173173
printf("Removing %s\n", qname);
174174
}
175175
if (unlink(ent->name) != 0) {
176-
warning("failed to remove '%s'", qname);
176+
warning("failed to remove %s", qname);
177177
errors++;
178178
}
179179
}

0 commit comments

Comments
 (0)