Skip to content
Snippets Groups Projects
Commit d4311fd4 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

update.sh: use sort instead of git tag --sort.

Older versions of Git don't have this flag and we don't want to block
updates for them when there's a (relatively) simple workaround.
parent ff4636bd
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,8 @@ merge_or_rebase() {
if [[ "$DIR" = "$HOMEBREW_REPOSITORY" && -n "$HOMEBREW_UPDATE_TO_TAG" ]]
then
UPSTREAM_TAG="$(git tag --list --sort=-version:refname |
UPSTREAM_TAG="$(git tag --list |
sort --field-separator=. --key=1,1nr -k 2,2nr -k 3,3nr |
grep --max-count=1 '^[0-9]*\.[0-9]*\.[0-9]*$')"
else
UPSTREAM_TAG=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment