Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ls/github'
[gitweb.git]
/
builtin
/
rm.c
diff --git
a/builtin/rm.c
b/builtin/rm.c
index 7c323d01235bf8bbb341004c843761dad99590d2..b39f10fcb64f047090967dbf8b31120d2beb1b67 100644
(file)
--- a/
builtin/rm.c
+++ b/
builtin/rm.c
@@
-129,7
+129,7
@@
static int check_local_mod(struct object_id *head, int index_only)
ce = active_cache[pos];
if (lstat(ce->name, &st) < 0) {
- if (
errno != ENOENT && errno != ENOTDIR
)
+ if (
!is_missing_file_error(errno)
)
warning_errno(_("failed to stat '%s'"), ce->name);
/* It already vanished from the working tree */
continue;