]> git.ipfire.org Git - thirdparty/git.git/blobdiff - dir.c
Make hash_name_lookup able to do case-independent lookups
[thirdparty/git.git] / dir.c
diff --git a/dir.c b/dir.c
index edc458e020772a7ab704e9cf69786d3aa641bcd4..7362e8328290eb22e8bed0e6c1782863bc4c1d0d 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -371,7 +371,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, 0))
                return NULL;
 
        ALLOC_GROW(dir->entries, dir->nr+1, dir->alloc);