Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: recurse in-process using 'struct repository'
[gitweb.git]
/
builtin
/
update-index.c
diff --git
a/builtin/update-index.c
b/builtin/update-index.c
index 0a4c2364879313b9a1a5cae653fee0642b2d403d..56721cf03db23a2f5a1b8e9419422df916d7b00f 100644
(file)
--- a/
builtin/update-index.c
+++ b/
builtin/update-index.c
@@
-258,7
+258,7
@@
static int remove_one_path(const char *path)
*/
static int process_lstat_error(const char *path, int err)
{
- if (
err == ENOENT || err == ENOTDIR
)
+ if (
is_missing_file_error(err)
)
return remove_one_path(path);
return error("lstat(\"%s\"): %s", path, strerror(err));
}