Skip to content

Commit

Permalink
Fix it for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Jul 25, 2023
1 parent 01c14bd commit 63008c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/advisories/helpers/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,15 @@ fn fetch_and_checkout(repo: &mut gix::Repository) -> anyhow::Result<()> {
config
.set_raw_value("committer", None, "name", "cargo-deny")
.context("failed to set committer.name")?;
// config
// .set_raw_value("committer", None, "email", "[email protected]").context("failed to set committer.email");5
// Note we _have_ to set the email as well, but luckily gix does not actually
// validate if it's a proper email or not :)
config
.set_raw_value("committer", None, "email", "")
.context("failed to set committer.email")?;

config.commit_auto_rollback().unwrap()
config
.commit_auto_rollback()
.context("failed to create auto rollback")?
};

repo.edit_reference(edit).context("failed to update HEAD")?;
Expand Down

0 comments on commit 63008c9

Please sign in to comment.