Commit 62155257d2d30d8f8d7108539df0681dce27ff61

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 6b06dfd..6246ff6 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -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)