tree: Check for .git with case insensitivy

This commit is contained in:
Vicent Marti 2014-11-25 00:14:52 +01:00 committed by Edward Thomson
parent cceae9a25d
commit 62155257d2

View File

@ -57,7 +57,7 @@ static int valid_entry_name(const char *filename)
(*filename != '.' ||
(strcmp(filename, ".") != 0 &&
strcmp(filename, "..") != 0 &&
strcmp(filename, DOT_GIT) != 0));
strcasecmp(filename, DOT_GIT) != 0));
}
static int entry_sort_cmp(const void *a, const void *b)