Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH] git-clean: handle errors if removing files fails

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:15

Possibly related (same subject, not in this thread)

Miklos Vajna [off-list ref] writes:
Consider the following case:

$ sudo mkdir foo
$ sudo touch foo/bar

This is the old output:

$ git clean -f -d
Removing foo/

No error message.

This is the new output:

$ ~/git/git/git clean -f -d
Removing foo/
fatal: failed to remove 'foo/'
That's quite different style from the other commit log messages
in the project, isn't it?

While I agree reporting an error is definitely an improvement, I
do not think dying in the middle is the right thing to do.

Shouldn't it note the error, remove other cruft, and then
finally signal the error by exiting non-zero?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help