From 842602e8a9c9ef34819c6d46708e668e76a3dca8 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Sat, 7 Mar 2026 09:28:59 -0800 Subject: [PATCH] Determine branch name for nightly from the repository head Instead of hard-coding the name to be "main". Continue to use "main" as a fallback if the head cannot be retrieved or does not have a shorthand representation. --- src/main.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 95ea0cac..cbf98dd4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -504,6 +504,16 @@ fn generate_thanks() -> Result, Box match reference.shorthand() { + Some(name) => name.to_string(), + None => "main".to_string(), + }, + Err(_) => "main".to_string(), + }; + versions.push(VersionTag { name: String::from("Beta"), version: { @@ -528,7 +538,7 @@ fn generate_thanks() -> Result, Box