push modification

This commit is contained in:
grimhilt
2023-08-24 20:59:41 +02:00
parent f64d719b31
commit 498fada9ec
8 changed files with 254 additions and 30 deletions

View File

@@ -3,7 +3,6 @@ use std::io;
use crate::services::api::ApiError;
use crate::services::req_props::ReqProps;
use crate::services::upload_file::UploadFile;
use crate::store::index;
use crate::store::object::blob::Blob;
use crate::commands::status::LocalObj;
use crate::commands::push::push_factory::{PushState, PushChange, PushFlowState};
@@ -70,9 +69,6 @@ impl PushChange for New {
// create new blob
Blob::new(obj.path.clone()).create(&lastmodified.to_string(), true)?;
// remove index
index::rm_line(obj.path.to_str().unwrap())?;
Ok(())
}