Compare commits

...

3 Commits

Author SHA1 Message Date
d6add611fb fix error message 2024-01-14 13:24:33 -08:00
ebd5bb526e force update 2024-01-14 11:12:57 -08:00
858ed8a89c todo 2024-01-14 11:07:33 -08:00

@ -26,6 +26,7 @@ struct Cli{
#[arg(long)]
cookie_file:Option<std::path::PathBuf>,
//TODO: read the versions.json file instead of doing this
//TODO: write file dates instead of versions.json
#[arg(long)]
start_version:Option<u64>,
#[arg(long)]
@ -926,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()?
@ -1011,7 +1010,7 @@ async fn decompile_history_into_git(config:DecompileHistoryConfig)->AResult<()>{
write_scripts:config.write_scripts,
},join_handle_result,&repo).await{
Ok(())=>(),
Err(e)=>println!("download/unzip/decompile/write/commit error: {}",e),
Err(e)=>println!("decompile/write/commit error: {}",e),
}
}).await;
Ok(())