diff --git a/src/cli_helpers.rs b/src/cli_helpers.rs index d2a9887..36e7885 100644 --- a/src/cli_helpers.rs +++ b/src/cli_helpers.rs @@ -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 } } diff --git a/src/walk_parallel/mod.rs b/src/walk_parallel/mod.rs index 2c76a74..2c8064d 100644 --- a/src/walk_parallel/mod.rs +++ b/src/walk_parallel/mod.rs @@ -317,7 +317,7 @@ pub fn clean_project_dirs>(p: P, exclude: &Option, _: 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)