force update

This commit is contained in:
Quaternions 2024-01-14 11:12:57 -08:00
parent 858ed8a89c
commit ebd5bb526e

View File

@ -927,11 +927,9 @@ async fn write_commit(config:WriteCommitConfig,b:Result<AResult<(AssetVersion,De
let tree_id={
let mut tree_index = repo.index()?;
tree_index.add_all([config.output_folder.as_path()].iter(),git2::IndexAddOption::DEFAULT,None)?;
if tree_index.len()==0{
println!("tree_index.len()==0");
return Ok(());
}else{
tree_index.update_all([config.output_folder.as_path()].iter(),None)?;
match tree_index.update_all([config.output_folder.as_path()].iter(),None){
Ok(_)=>(),
Err(e)=>println!("tree_index.update_all error: {}",e),
}
tree_index.write()?;
tree_index.write_tree()?