Set upstream branch when promoting

This commit is contained in:
Jonas Schievink
2021-11-22 13:39:07 +01:00
parent bc37d9a29a
commit be8d40a13e
+1 -1
View File
@@ -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()?;
}