aboutsummaryrefslogtreecommitdiff
path: root/src/file_finder.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2023-04-16 13:46:46 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-04-16 13:46:46 +0200
commitea5297364f8a1b2c4e684140024b60a83b087b50 (patch)
tree788cabbe2d660ec004009017eb793426d205cf8f /src/file_finder.rs
parent4fd89b808cabc8afb0d75b9700be1da96989c4b7 (diff)
Add static file copying
Diffstat (limited to 'src/file_finder.rs')
-rw-r--r--src/file_finder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_finder.rs b/src/file_finder.rs
index 105a999..bcd368d 100644
--- a/src/file_finder.rs
+++ b/src/file_finder.rs
@@ -13,7 +13,7 @@ fn find_files_recursively(root_path: &PathBuf, directory_path: &PathBuf) -> Vec<
for entry in entries {
let path = entry.unwrap().path();
let relative_path = path.strip_prefix(&root_path).unwrap();
- if relative_path.starts_with(".git") {
+ if relative_path.starts_with(".git") || relative_path.starts_with(".gitignore") {
continue;
}
if path.is_dir() {