From 550fcccc270a3f106b8a9ce01eb193961f35ae56 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Thu, 11 Sep 2025 18:28:30 +0200 Subject: [PATCH] remote-helper: Do not hard-code binary name --- crates/radicle-remote-helper/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/radicle-remote-helper/src/main.rs b/crates/radicle-remote-helper/src/main.rs index 381269eb..5576768d 100644 --- a/crates/radicle-remote-helper/src/main.rs +++ b/crates/radicle-remote-helper/src/main.rs @@ -29,7 +29,7 @@ use radicle_cli::git::Rev; use radicle_cli::terminal as cli; pub const VERSION: Version = Version { - name: "git-remote-rad", + name: env!("CARGO_BIN_NAME"), commit: env!("GIT_HEAD"), version: env!("RADICLE_VERSION"), timestamp: env!("SOURCE_DATE_EPOCH"), @@ -201,7 +201,7 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> { if let Err(e) = radicle::io::set_file_limit(4096) { if debug { - eprintln!("git-remote-rad: unable to set open file limit: {e}"); + eprintln!("{}: unable to set open file limit: {e}", VERSION.name); } } @@ -209,7 +209,7 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> { let tokens = read_line(&stdin, &mut line)?; if debug { - eprintln!("git-remote-rad: {:?}", &tokens); + eprintln!("{}: {}", VERSION.name, &tokens.join(" ")); } match tokens.as_slice() {