Skip to content

Commit 6d05883

Browse files
committed
fixup! clean: remove mount points when possible
Accommodating for Junio's changes to the path quoting machinery. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ab8c9c8 commit 6d05883

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
@@ -178,7 +178,7 @@ static int remove_dirs(struct strbuf *path, const char *prefix, int force_flag,
178178
if (is_mount_point(path)) {
179179
#ifndef CAN_UNLINK_MOUNT_POINTS
180180
if (!quiet) {
181-
quote_path_relative(path->buf, prefix, &quoted);
181+
quote_path(path->buf, prefix, &quoted, 0);
182182
printf(dry_run ?
183183
_(msg_would_skip_mount_point) :
184184
_(msg_skip_mount_point), quoted.buf);
@@ -187,7 +187,7 @@ static int remove_dirs(struct strbuf *path, const char *prefix, int force_flag,
187187
#else
188188
if (!dry_run && unlink(path->buf)) {
189189
int saved_errno = errno;
190-
quote_path_relative(path->buf, prefix, &quoted);
190+
quote_path(path->buf, prefix, &quoted, 0);
191191
errno = saved_errno;
192192
warning_errno(_(msg_warn_remove_failed), quoted.buf);
193193
*dir_gone = 0;

0 commit comments

Comments
 (0)