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.
This commit is contained in:
Philipp Krones 2022-06-06 14:41:36 +02:00
parent 99a731d265
commit b2660de8ec
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5

View file

@ -28,7 +28,7 @@ tree of the Clippy repository.
To find out if this step is necessary run
```bash
# Assumes that the local master branch is up-to-date
# Assumes that the local master branch of rust-lang/rust-clippy is up-to-date
$ git fetch upstream
$ git branch master --contains upstream/beta
```
@ -56,7 +56,8 @@ determined.
```bash
# Assuming the current directory corresponds to the Rust repository
$ git checkout beta
$ git fetch upstream
$ git checkout upstream/beta
$ 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")
```