X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.c;h=bbfcb566e63310d38848b0b76076fb051a7446c8;hb=60ecac98ed6f420c6bf823491074219087c749d4;hp=0e6b752cd5833bfb970619983b4efa880aaaf134;hpb=983e9b63aecf1923ef5809fe13ed107105627262;p=git.git diff --git a/dir.c b/dir.c index 0e6b752cd..bbfcb566e 100644 --- a/dir.c +++ b/dir.c @@ -396,7 +396,7 @@ static struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathna static struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len) { - if (cache_name_pos(pathname, len) >= 0) + if (!cache_name_is_other(pathname, len)) return NULL; ALLOC_GROW(dir->ignored, dir->ignored_nr+1, dir->ignored_alloc);