X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=dir.c;h=bbfcb566e63310d38848b0b76076fb051a7446c8;hb=95a877a34c3838a92a99794ebc3b082f6f525899;hp=0e6b752cd5833bfb970619983b4efa880aaaf134;hpb=f2823263bd53b62831450277c746c6cbfcb95a15;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);