From 8501e563457ab8be3f8ec5e3a5e2b7bb0675e2a6 Mon Sep 17 00:00:00 2001 From: Daniel Norman Date: Tue, 6 Oct 2026 17:45:15 +0200 Subject: [PATCH] remote-helper: Peel pushed tags for explorer URL - Use the tagged commit for the tree URL, not the tag object - Print no URL if the ref does not point to a commit --- crates/radicle-remote-helper/src/push.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/radicle-remote-helper/src/push.rs b/crates/radicle-remote-helper/src/push.rs index fe98a5743..7d5129607 100644 --- a/crates/radicle-remote-helper/src/push.rs +++ b/crates/radicle-remote-helper/src/push.rs @@ -850,7 +850,17 @@ where patch_merge_all(old, head, dst, working, &mut patches, signer, &identity)?; } } - Ok(Some(ExplorerResource::Tree { oid: head })) + // Annotated tags point to a tag object, but the explorer can only show + // the tree of a commit. + let resource = working + .find_object(head.into(), None)? + .peel_to_commit() + .ok() + .map(|commit| ExplorerResource::Tree { + oid: commit.id().into(), + }); + + Ok(resource) } /// Revert all patches that are no longer included in the base branch.