File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,16 @@ impl flags::Release {
10
10
cmd ! ( "git switch release" ) . run ( ) ?;
11
11
cmd ! ( "git fetch upstream --tags --force" ) . run ( ) ?;
12
12
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 ( ) ?;
14
23
}
15
24
codegen:: docs ( ) ?;
16
25
You can’t perform that action at this time.
0 commit comments