Skip to content

Commit

Permalink
Don't assume git pull fetches all branches/tags
Browse files Browse the repository at this point in the history
While running a release, at this point in the instructions I was on the `v1.3.5-release-notes` branch.

So `git pull` isn't guaranteed to pull updates on `main` etc.

Since we're going to checkout the release tag, a `fetch` is all we need here.
  • Loading branch information
jeffwidman authored Nov 2, 2022
1 parent 5ef0018 commit 1c10606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jobs:
- Get the PR reviewed, merge it and publish the release
- Update the `v1` tracking tag to point to the new version
```bash
git pull
git fetch --all --tags
git checkout v1.x.x # Check out the release tag
git tag -f v1 # Force update the tracking tag
git push -f --tags
Expand Down

0 comments on commit 1c10606

Please sign in to comment.