From fd3f06d87f511e2ce3bae8ce956e0d49b27acf85 Mon Sep 17 00:00:00 2001 From: Jan David Date: Thu, 3 Oct 2024 11:44:35 +0200 Subject: [PATCH] Cut beta releases for Rustup from the stable branch --- src/rustup.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rustup.rs b/src/rustup.rs index a2eaaf4..6c045c9 100644 --- a/src/rustup.rs +++ b/src/rustup.rs @@ -86,13 +86,8 @@ impl Context { sha: String, } - let url = format!( - "https://api.github.com/repos/rust-lang/rustup/commits/{}", - self.config.channel - ); - let mut client = Easy::new(); - client.url(&url)?; + client.url("https://api.github.com/repos/rust-lang/rustup/commits/stable")?; client.useragent("rust-lang/promote-release")?; let commit: Commit = client.without_body().send_with_response()?;