diff --git a/src/main.rs b/src/main.rs index c7e062f..feb5c27 100644 --- a/src/main.rs +++ b/src/main.rs @@ -942,11 +942,18 @@ async fn write_commit(config:WriteCommitConfig,b:Result(), + Err(e)=>println!("tree_index.add_all error: {}",e), + } + match tree_index.update_all(std::iter::once(config.output_folder.as_path()),None){ Ok(_)=>(), Err(e)=>println!("tree_index.update_all error: {}",e), } + if tree_index.len()==0{ + println!("tree_index.len()==0"); + return Ok(()); + } tree_index.write()?; tree_index.write_tree()? }; @@ -961,7 +968,7 @@ async fn write_commit(config:WriteCommitConfig,b:Result