From 372e684f6e8fa33e3c7d7de9d6669dfa6da4e818 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 7 Apr 2020 11:37:59 +0200 Subject: [PATCH] When making a release, just promote the latest nightly --- xtask/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 4f01f84fb4..0b8243f62e 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs @@ -172,8 +172,8 @@ pub fn run_pre_cache() -> Result<()> { pub fn run_release(dry_run: bool) -> Result<()> { if !dry_run { run!("git switch release")?; - run!("git fetch upstream")?; - run!("git reset --hard upstream/master")?; + run!("git fetch upstream --tags --force")?; + run!("git reset --hard tags/nightly")?; run!("git push")?; }