From 8569c694f25f5c0a67f0fe798e822c1d1770c247 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 11 Jan 2024 02:35:08 -0800 Subject: [PATCH] ? tech --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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