mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 09:10:46 +00:00
For negative matches, always use leading dir match
This commit is contained in:
parent
aa5cdf63bf
commit
a0cacc82d5
@ -534,7 +534,8 @@ int git_attr_fnmatch__parse(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (*pattern == '!' && (spec->flags & GIT_ATTR_FNMATCH_ALLOWNEG) != 0) {
|
if (*pattern == '!' && (spec->flags & GIT_ATTR_FNMATCH_ALLOWNEG) != 0) {
|
||||||
spec->flags = spec->flags | GIT_ATTR_FNMATCH_NEGATIVE;
|
spec->flags = spec->flags |
|
||||||
|
GIT_ATTR_FNMATCH_NEGATIVE | GIT_ATTR_FNMATCH_LEADINGDIR;
|
||||||
pattern++;
|
pattern++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user