From be8d40a13e010eed5b09cc0aeb7d174fee7c9f4e Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 22 Nov 2021 13:39:07 +0100 Subject: [PATCH] Set upstream branch when promoting --- xtask/src/release.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/release.rs b/xtask/src/release.rs index d0ddf27b4df..f4c5a512d50 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs @@ -76,7 +76,7 @@ pub(crate) fn run(self) -> Result<()> { cmd!("git add src/tools/rust-analyzer").run()?; cmd!("git commit -m':arrow_up: rust-analyzer'").run()?; if !self.dry_run { - cmd!("git push -u").run()?; + cmd!("git push -u origin {branch}").run()?; cmd!("xdg-open https://github.com/matklad/rust/pull/new/{branch}?body=r%3F%20%40ghost") .run()?; }