Merge branch 'jk/config-warn-on-inaccessible-paths'
The attribute system may be asked for a path that itself or its leading directories no longer exists in the working tree. Failure to open per-directory .gitattributes with error status other than ENOENT and ENOTDIR are diagnosed. * jk/config-warn-on-inaccessible-paths: attr: failure to open a .gitattributes file is OK with ENOTDIR
This commit is contained in:
commit
d6fb62474e
2
attr.c
2
attr.c
@ -353,7 +353,7 @@ static struct attr_stack *read_attr_from_file(const char *path, int macro_ok)
|
|||||||
int lineno = 0;
|
int lineno = 0;
|
||||||
|
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
if (errno != ENOENT)
|
if (errno != ENOENT && errno != ENOTDIR)
|
||||||
warn_on_inaccessible(path);
|
warn_on_inaccessible(path);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user