Commit 928429c5c96a701bcbcafacb2421a82602b36915

Vicent Marti 2014-11-25T00:14:52

tree: Check for `.git` with case insensitivy

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/tree.c b/src/tree.c
index 4ddb26b..bfdcb82 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -55,7 +55,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)