Skip to content

Commit

Permalink
tree: Check for .git with case insensitivy
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg authored and Edward Thomson committed Dec 17, 2014
1 parent 09361df commit 928429c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 928429c

Please sign in to comment.