From 759a6fb98221d222ce515619a5526292a78d3995 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Thu, 12 Mar 2026 17:00:09 +0000 Subject: [PATCH] radicle: Compile `rad::fork_remote` only for tests The `rad::fork_remote` function is only used in tests. --- crates/radicle/src/rad.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/radicle/src/rad.rs b/crates/radicle/src/rad.rs index fdcd15b9..fdc91be0 100644 --- a/crates/radicle/src/rad.rs +++ b/crates/radicle/src/rad.rs @@ -165,6 +165,7 @@ pub enum ForkError { } /// Create a local tree for an existing project, from an existing remote. +#[cfg(any(test, feature = "test"))] pub fn fork_remote( proj: RepoId, remote: &RemoteId,