From a645273433fe3a716dd9c43ad9276da066af6127 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 16 Feb 2024 20:41:59 +0000 Subject: refactor: remove reliance on 'commit' tag as part of nip34 compliance --- src/sub_commands/push.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sub_commands/push.rs') diff --git a/src/sub_commands/push.rs b/src/sub_commands/push.rs index cc1f480..7c6b95b 100644 --- a/src/sub_commands/push.rs +++ b/src/sub_commands/push.rs @@ -12,8 +12,8 @@ use crate::{ repo_ref::{self, RepoRef}, sub_commands::{ list::{ - find_commits_for_pr_event, find_pr_events, get_most_recent_patch_with_ancestors, - tag_value, + find_commits_for_pr_event, find_pr_events, get_commit_id_from_patch, + get_most_recent_patch_with_ancestors, tag_value, }, send::{event_to_cover_letter, generate_patch_event, send_events}, }, @@ -66,7 +66,7 @@ pub async fn launch(cli_args: &Cli) -> Result<()> { let branch_tip = git_repo.get_tip_of_local_branch(&branch_name)?; let most_recent_patch_commit_id = str_to_sha1( - &tag_value(&most_recent_pr_patch_chain[0], "commit") + &get_commit_id_from_patch(&most_recent_pr_patch_chain[0]) .context("latest patch event doesnt have a commit tag")?, ) .context("latest patch event commit tag isn't a valid SHA1 hash")?; -- cgit v1.2.3