Merge branch 'bw/object-id'
[gitweb.git] / diff-lib.c
index 9e076a48861a9be8f8fe9d17e6fa18197fc49fe1..0c0e20f7c004119cd86bc377722eca6d318cdf5d 100644 (file)
@@ -29,7 +29,7 @@
 static int check_removed(const struct cache_entry *ce, struct stat *st)
 {
        if (lstat(ce->name, st) < 0) {
-               if (errno != ENOENT && errno != ENOTDIR)
+               if (!is_missing_file_error(errno))
                        return -1;
                return 1;
        }