Commit 62155257 by Vicent Marti Committed by Edward Thomson

tree: Check for `.git` with case insensitivy

parent cceae9a2
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment