Merge branch 'jk/rm-removed-paths'

A handful of test cases and a corner case bugfix for "git rm".

* jk/rm-removed-paths:
  t3600: document failure of rm across symbolic links
  t3600: test behavior of reverse-d/f conflict
  rm: do not complain about d/f conflicts during deletion
This commit is contained in:
Junio C Hamano
2013-04-07 14:33:14 -07:00
3 changed files with 67 additions and 2 deletions

2
dir.c
View File

@ -1647,7 +1647,7 @@ int remove_path(const char *name)
{
char *slash;
if (unlink(name) && errno != ENOENT)
if (unlink(name) && errno != ENOENT && errno != ENOTDIR)
return -1;
slash = strrchr(name, '/');