Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit ec260f3

Browse files
committed
don't delete ~/.gnupg
1 parent 884af07 commit ec260f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cli_helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ pub fn get_excludes(cli_excludes: Option<&str>) -> Regex {
1414
Some(s) => {
1515
let mut x = "(".to_string();
1616
x.push_str(s);
17-
x.push_str(r")|(\.git|\.pijul|_darcs|\.hg)$");
17+
x.push_str(r")|(\.git|\.pijul|_darcs|\.hg|\.gnupg)$");
1818
check_regex(&x)
1919
}
20-
_ => Regex::new(r"(\.git|\.pijul|_darcs|\.hg)$").unwrap(), // ok because static
20+
_ => Regex::new(r"(\.git|\.pijul|_darcs|\.hg|\.gnupg)$").unwrap(), // ok because static
2121
}
2222
}
2323

src/walk_parallel/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ pub fn clean_project_dirs<P: AsRef<Path>>(p: P, exclude: &Option<Regex>, _: bool
317317
.unwrap();
318318
}
319319
lazy_static! {
320-
static ref SRC_CONTROL: Regex = Regex::new(r"(_darcs|\.(git|hg|pijul))").unwrap();
320+
static ref SRC_CONTROL: Regex = Regex::new(r"(_darcs|\.(git|hg|pijul|gnupg))").unwrap();
321321
}
322322

323323
for dir in WalkDir::new(p)

0 commit comments

Comments
 (0)