Commit 928429c5 by Vicent Marti Committed by Edward Thomson

tree: Check for `.git` with case insensitivy

parent 09361dfe
...@@ -55,7 +55,7 @@ static int valid_entry_name(const char *filename) ...@@ -55,7 +55,7 @@ static int valid_entry_name(const char *filename)
(*filename != '.' || (*filename != '.' ||
(strcmp(filename, ".") != 0 && (strcmp(filename, ".") != 0 &&
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) 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