Skip to content

Commit

Permalink
don't delete ~/.gnupg
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Feb 24, 2021
1 parent 884af07 commit ec260f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ pub fn get_excludes(cli_excludes: Option<&str>) -> Regex {
Some(s) => {
let mut x = "(".to_string();
x.push_str(s);
x.push_str(r")|(\.git|\.pijul|_darcs|\.hg)$");
x.push_str(r")|(\.git|\.pijul|_darcs|\.hg|\.gnupg)$");
check_regex(&x)
}
_ => Regex::new(r"(\.git|\.pijul|_darcs|\.hg)$").unwrap(), // ok because static
_ => Regex::new(r"(\.git|\.pijul|_darcs|\.hg|\.gnupg)$").unwrap(), // ok because static
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/walk_parallel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pub fn clean_project_dirs<P: AsRef<Path>>(p: P, exclude: &Option<Regex>, _: bool
.unwrap();
}
lazy_static! {
static ref SRC_CONTROL: Regex = Regex::new(r"(_darcs|\.(git|hg|pijul))").unwrap();
static ref SRC_CONTROL: Regex = Regex::new(r"(_darcs|\.(git|hg|pijul|gnupg))").unwrap();
}

for dir in WalkDir::new(p)
Expand Down

0 comments on commit ec260f3

Please sign in to comment.