Compare commits
1 commit
master
...
revert-104
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09ebe4feb9 |
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ void add_ignore_pattern(ignores *ig, const char *pattern) {
|
|||
char ***patterns_p;
|
||||
size_t *patterns_len;
|
||||
if (is_fnmatch(pattern)) {
|
||||
if (pattern[0] == '*' && pattern[1] == '.' && !strchr(pattern + 2, '.') && !is_fnmatch(pattern + 2)) {
|
||||
if (pattern[0] == '*' && pattern[1] == '.' && !(is_fnmatch(pattern + 2))) {
|
||||
patterns_p = &(ig->extensions);
|
||||
patterns_len = &(ig->extensions_len);
|
||||
pattern += 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue