This commit is contained in:
Aleksey Kladov 2020-07-07 18:12:22 +02:00
parent 695f1a9af8
commit faa65d7856
2 changed files with 19 additions and 1 deletions

View file

@ -69,3 +69,16 @@ Release: release:{}[]
Ok(())
}
}
pub struct PromoteCmd {
pub dry_run: bool,
}
impl PromoteCmd {
pub fn run(self) -> Result<()> {
run!("git switch release")?;
run!("git fetch upstream")?;
run!("git reset --hard upstream/release")?;
Ok(())
}
}