mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Fix lint
This commit is contained in:
parent
38fb40204f
commit
2bb2dc1ede
1 changed files with 2 additions and 2 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue