Skip to content

Commit b2660de

Browse files
committed
Book: Improve release documentation
Make it clear for all code blocks in which repository they should be run. Also make sure that the correct beta commit is fetched.
1 parent 99a731d commit b2660de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/src/development/infrastructure/release.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tree of the Clippy repository.
2828
To find out if this step is necessary run
2929

3030
```bash
31-
# Assumes that the local master branch is up-to-date
31+
# Assumes that the local master branch of rust-lang/rust-clippy is up-to-date
3232
$ git fetch upstream
3333
$ git branch master --contains upstream/beta
3434
```
@@ -56,7 +56,8 @@ determined.
5656

5757
```bash
5858
# Assuming the current directory corresponds to the Rust repository
59-
$ git checkout beta
59+
$ git fetch upstream
60+
$ git checkout upstream/beta
6061
$ BETA_SHA=$(git log --oneline -- src/tools/clippy/ | grep -o "Merge commit '[a-f0-9]*' into .*" | head -1 | sed -e "s/Merge commit '\([a-f0-9]*\)' into .*/\1/g")
6162
```
6263

0 commit comments

Comments
 (0)