Don't include RCs when checking out latest tag. (#369)
``git tag -l | sort -V | head -1`` will consider release candidates as the latest version, even if there's a stable release, due to how `sort -V` orders strings. Adding ``grep -v 'rc[0-9]*$'`` to filter out the release candidate tags fixes this.
This commit is contained in:
parent
3bc77449de
commit
d9e523ec15
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ This is how you do that:
|
|||
su - mastodon
|
||||
cd ~/live
|
||||
git pull
|
||||
git checkout $(git tag -l | sort -V | tail -n 1)
|
||||
git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
|
||||
```
|
||||
|
||||
The above commands will update your copy of your git repository to the latest available
|
||||
|
|
Loading…
Reference in a new issue