upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands/push.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-02-16 20:41:59 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-02-16 20:41:59 +0000
commita645273433fe3a716dd9c43ad9276da066af6127 (patch)
tree942e08c7de68112975269b64b6802dcfcb7c1fe0 /src/sub_commands/push.rs
parent614d2c8a3a0ac01b142aa83a142fc34d1ad56e9d (diff)
refactor: remove reliance on 'commit' tag
as part of nip34 compliance
Diffstat (limited to 'src/sub_commands/push.rs')
-rw-r--r--src/sub_commands/push.rs6
1 files changed, 3 insertions, 3 deletions
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::{
12 repo_ref::{self, RepoRef}, 12 repo_ref::{self, RepoRef},
13 sub_commands::{ 13 sub_commands::{
14 list::{ 14 list::{
15 find_commits_for_pr_event, find_pr_events, get_most_recent_patch_with_ancestors, 15 find_commits_for_pr_event, find_pr_events, get_commit_id_from_patch,
16 tag_value, 16 get_most_recent_patch_with_ancestors, tag_value,
17 }, 17 },
18 send::{event_to_cover_letter, generate_patch_event, send_events}, 18 send::{event_to_cover_letter, generate_patch_event, send_events},
19 }, 19 },
@@ -66,7 +66,7 @@ pub async fn launch(cli_args: &Cli) -> Result<()> {
66 let branch_tip = git_repo.get_tip_of_local_branch(&branch_name)?; 66 let branch_tip = git_repo.get_tip_of_local_branch(&branch_name)?;
67 67
68 let most_recent_patch_commit_id = str_to_sha1( 68 let most_recent_patch_commit_id = str_to_sha1(
69 &tag_value(&most_recent_pr_patch_chain[0], "commit") 69 &get_commit_id_from_patch(&most_recent_pr_patch_chain[0])
70 .context("latest patch event doesnt have a commit tag")?, 70 .context("latest patch event doesnt have a commit tag")?,
71 ) 71 )
72 .context("latest patch event commit tag isn't a valid SHA1 hash")?; 72 .context("latest patch event commit tag isn't a valid SHA1 hash")?;