Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checked
[gitweb.git]
/
apply.c
diff --git
a/apply.c
b/apply.c
index 0e2caeab9cc523364e0cfbb8cbbb5aba1a0a58ee..59bb3497dea1ec74e90846b120277cdf5407e6fa 100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-3741,7
+3741,7
@@
static int check_to_create(struct apply_state *state,
return 0;
return EXISTS_IN_WORKTREE;
- } else if (
(errno != ENOENT) && (errno != ENOTDIR
)) {
+ } else if (
!is_missing_file_error(errno
)) {
return error_errno("%s", new_name);
}
return 0;