From 54fa2098ea1c18d94cd82c7661c4950e9628a17a Mon Sep 17 00:00:00 2001 From: Logan Date: Sat, 7 Sep 2024 15:55:28 -0500 Subject: [PATCH] changed head to .head --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 82c896c..ff7984f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,7 +38,8 @@ fn opts() -> Options { } fn convert_all(src_path: &Path, dist_path: &Path) { - let head = std::fs::read_to_string("./head").unwrap_or_default(); + let head_path = src_path.join(".head"); + let head = std::fs::read_to_string(head_path).unwrap_or_default(); for entry in ignore::Walk::new(src_path) { let entry = match entry { Ok(p) => p,