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,