Skip to content

Commit 9410f2b

Browse files
palminlhchavez
andauthored
Update src/ignore.c
Co-authored-by: lhchavez <lhchavez@lhchavez.com>
1 parent bc3d406 commit 9410f2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ignore.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static int does_negate_rule(int *out, git_vector *rules, git_attr_fnmatch *match
146146
requiring * to also match /
147147
*/
148148
effective_flags = wildmatch_flags;
149-
if ((rule->flags & GIT_ATTR_FNMATCH_FULLPATH) == 0) {
149+
if (!(rule->flags & GIT_ATTR_FNMATCH_FULLPATH)) {
150150
effective_flags &= ~WM_PATHNAME;
151151
}
152152

@@ -645,4 +645,3 @@ int git_ignore__check_pathspec_for_exact_ignores(
645645

646646
return error;
647647
}
648-

0 commit comments

Comments
 (0)