Skip to content

Commit

Permalink
fix(gitignore): avoid duplicating **
Browse files Browse the repository at this point in the history
  • Loading branch information
kkharji committed Jun 20, 2022
1 parent ec9acf2 commit 984f940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/src/util/fs.rs
Expand Up @@ -72,7 +72,7 @@ pub fn gitignore_content_to_glob_patterns(content: String) -> Vec<String> {
})
.filter(|&(_, s)| s.chars().next() != Some('/'))
.map(|(pat, s)| {
if s != "/" {
if s != "/" && !s.starts_with("**") {
(pat, format!("**/{s}"))
} else {
(pat, format!("{s}"))
Expand Down

0 comments on commit 984f940

Please sign in to comment.