1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00
This commit is contained in:
Leandro Reina 2024-11-25 23:35:29 +01:00
parent 38fb40204f
commit 2bb2dc1ede

View file

@ -363,10 +363,10 @@ std::vector<AttrRule> parseGitAttrFile(const std::string & content)
// These should effectively match the same files
// https://github.com/libgit2/libgit2/issues/6946
if (rule.pattern.starts_with("/**/")) {
rule.pattern = rule.pattern.substr(4);
rule.pattern = rule.pattern.substr(4);
}
while (rule.pattern.starts_with("**/")) {
rule.pattern = rule.pattern.substr(3);
rule.pattern = rule.pattern.substr(3);
}
git_strarray patterns = {0};