Skip to content

Commit 691c96e

Browse files
bors[bot]matklad
andauthored
Merge #8661
8661: internal: make normal release after a poin release less annoying r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 3209dda + 26dfb6b commit 691c96e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

xtask/src/release.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ impl flags::Release {
1010
cmd!("git switch release").run()?;
1111
cmd!("git fetch upstream --tags --force").run()?;
1212
cmd!("git reset --hard tags/nightly").run()?;
13-
cmd!("git push").run()?;
13+
// The `release` branch sometimes has a couple of cherry-picked
14+
// commits for patch releases. If that's the case, just overwrite
15+
// it. As we are setting `release` branch to an up-to-date `nightly`
16+
// tag, this shouldn't be problematic in general.
17+
//
18+
// Note that, as we tag releases, we don't worry about "losing"
19+
// commits -- they'll be kept alive by the tag. More generally, we
20+
// don't care about historic releases all that much, it's fine even
21+
// to delete old tags.
22+
cmd!("git push --force").run()?;
1423
}
1524
codegen::docs()?;
1625

0 commit comments

Comments
 (0)