Merge branch 'pc/remove-warn'
* pc/remove-warn: Remove a redundant errno test in a usage of remove_path Introduce remove_or_warn function Implement the rmdir_or_warn function Generalise the unlink_or_warn function
This commit is contained in:
@ -409,7 +409,7 @@ static int remove_file(struct merge_options *o, int clean,
|
||||
return -1;
|
||||
}
|
||||
if (update_working_directory) {
|
||||
if (remove_path(path) && errno != ENOENT)
|
||||
if (remove_path(path))
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user