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 tree_id={
|
||||||
let mut tree_index = repo.index()?;
|
let mut tree_index = repo.index()?;
|
||||||
tree_index.add_all([config.output_folder.as_path()].iter(),git2::IndexAddOption::DEFAULT,None)?;
|
tree_index.add_all([config.output_folder.as_path()].iter(),git2::IndexAddOption::DEFAULT,None)?;
|
||||||
if tree_index.len()==0{
|
match tree_index.update_all([config.output_folder.as_path()].iter(),None){
|
||||||
println!("tree_index.len()==0");
|
Ok(_)=>(),
|
||||||
return Ok(());
|
Err(e)=>println!("tree_index.update_all error: {}",e),
|
||||||
}else{
|
|
||||||
tree_index.update_all([config.output_folder.as_path()].iter(),None)?;
|
|
||||||
}
|
}
|
||||||
tree_index.write()?;
|
tree_index.write()?;
|
||||||
tree_index.write_tree()?
|
tree_index.write_tree()?
|
||||||
|
Loading…
Reference in New Issue
Block a user