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:
Shawn O. Pearce
2008-09-26 08:31:56 -07:00
3 changed files with 23 additions and 5 deletions

View File

@ -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;
}