From d9e523ec15619ebd70f5b3fd279a2541c821c12f Mon Sep 17 00:00:00 2001 From: Daggertooth Date: Sun, 10 Sep 2017 19:01:42 -0500 Subject: [PATCH] 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. --- Running-Mastodon/Updating-Mastodon-Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Running-Mastodon/Updating-Mastodon-Guide.md b/Running-Mastodon/Updating-Mastodon-Guide.md index b31c90c4..97962cf3 100644 --- a/Running-Mastodon/Updating-Mastodon-Guide.md +++ b/Running-Mastodon/Updating-Mastodon-Guide.md @@ -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