X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.c;h=29d1d5ba31def46ba8b55905dc60773cc6cc167e;hb=d88593fa0412a4f0a363860d879e97635c118616;hp=9501476ecdb05fb576d8acfc6a1dac02df86c9b7;hpb=a064ac1bc3f13103f92ae198da7fc44a1452c89d;p=git.git diff --git a/dir.c b/dir.c index 9501476ec..29d1d5ba3 100644 --- a/dir.c +++ b/dir.c @@ -389,7 +389,7 @@ static struct dir_entry *dir_entry_new(const char *pathname, int len) struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathname, int len) { - if (cache_name_exists(pathname, len)) + if (cache_name_exists(pathname, len, ignore_case)) return NULL; ALLOC_GROW(dir->entries, dir->nr+1, dir->alloc);