Unverified Commit 9410f2b5 by Anders Borum Committed by GitHub

Update src/ignore.c

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
parent bc3d4065
...@@ -146,7 +146,7 @@ static int does_negate_rule(int *out, git_vector *rules, git_attr_fnmatch *match ...@@ -146,7 +146,7 @@ static int does_negate_rule(int *out, git_vector *rules, git_attr_fnmatch *match
requiring * to also match / requiring * to also match /
*/ */
effective_flags = wildmatch_flags; effective_flags = wildmatch_flags;
if ((rule->flags & GIT_ATTR_FNMATCH_FULLPATH) == 0) { if (!(rule->flags & GIT_ATTR_FNMATCH_FULLPATH)) {
effective_flags &= ~WM_PATHNAME; effective_flags &= ~WM_PATHNAME;
} }
...@@ -645,4 +645,3 @@ int git_ignore__check_pathspec_for_exact_ignores( ...@@ -645,4 +645,3 @@ int git_ignore__check_pathspec_for_exact_ignores(
return error; return error;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment