Merge branch 'maint'
* maint: Remove empty directories in recursive merge Documentation: clarify the details of overriding LESS via core.pager Conflicts: builtin-merge-recursive.c
This commit is contained in:
@ -419,10 +419,8 @@ static int remove_file(struct merge_options *o, int clean,
|
||||
return -1;
|
||||
}
|
||||
if (update_working_directory) {
|
||||
unlink(path);
|
||||
if (errno != ENOENT || errno != EISDIR)
|
||||
if (remove_path(path) && errno != ENOENT)
|
||||
return -1;
|
||||
remove_path(path);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user