diff --git a/src/main.rs b/src/main.rs index a64bc0e..ce63233 100644 --- a/src/main.rs +++ b/src/main.rs @@ -720,7 +720,7 @@ fn write_commit(config:WriteCommitConfig,b:AResult<(AssetVersion,DecompiledConte &format!("v{}", asset_version.assetVersionNumber),//message &tree,//tree (basically files) &[&reference.peel_to_commit()?],//parents - ).expect("commit failed"), + )?, Err(_)=>repo.commit( Some("HEAD"),//update_ref &sig,//author @@ -728,7 +728,7 @@ fn write_commit(config:WriteCommitConfig,b:AResult<(AssetVersion,DecompiledConte &format!("v{}", asset_version.assetVersionNumber),//message &tree,//tree (basically files) &[],//parents - ).expect("commit failed"), + )?, }; //commit