move creation of downloaded file in service

This commit is contained in:
grimhilt
2023-06-17 00:37:12 +02:00
parent 0bf5fb76e0
commit b911ad8606
7 changed files with 94 additions and 35 deletions

View File

@@ -84,7 +84,6 @@ pub fn rm_blob(path: &Path) -> io::Result<()> {
pub fn add_blob(path: &Path, date: &str) -> io::Result<()> {
let (line, hash, name) = parse_path(path.clone(), true);
// add blob reference to parent
if path.iter().count() == 1 {
head::add_line(line)?;