note about default signature

This commit is contained in:
Quaternions 2024-01-11 20:29:22 -08:00
parent 1bdfbf96c3
commit b9eaefe056

View File

@ -746,8 +746,8 @@ async fn write_commit(config:WriteCommitConfig,b:Result<AResult<(AssetVersion,De
write_scripts:config.write_scripts, write_scripts:config.write_scripts,
},context).await?; },context).await?;
let date=asset_version.created; let date=asset_version.created;
//let sig=repo.signature()?; //this pulls default name and email
let sig=git2::Signature::new(config.git_committer_name.as_str(),config.git_committer_email.as_str(),&git2::Time::new(date.timestamp(),0)).unwrap(); let sig=git2::Signature::new(config.git_committer_name.as_str(),config.git_committer_email.as_str(),&git2::Time::new(date.timestamp(),0)).unwrap();
let tree_id={ let tree_id={
let mut tree_index = repo.index()?; let mut tree_index = repo.index()?;