forked from StrafesNET/asset-tool
force update
This commit is contained in:
parent
858ed8a89c
commit
ebd5bb526e
@ -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()?
|
||||
|
Loading…
Reference in New Issue
Block a user