Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44ebc08

Browse files
vmgEdward Thomson
authored and
Edward Thomson
committed
tree: Check for .git with case insensitivy
1 parent d1dd81b commit 44ebc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static int valid_entry_name(const char *filename)
5757
(*filename != '.' ||
5858
(strcmp(filename, ".") != 0 &&
5959
strcmp(filename, "..") != 0 &&
60-
strcmp(filename, DOT_GIT) != 0));
60+
strcasecmp(filename, DOT_GIT) != 0));
6161
}
6262

6363
static int entry_sort_cmp(const void *a, const void *b)

0 commit comments

Comments
 (0)