Skip to content

Commit 335d03b

Browse files
committed
Have Makefile use git tag to sort the tags
1 parent 6fb2318 commit 335d03b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ clean:
88

99
release: clean
1010
# Check if latest tag is the current head we're releasing
11-
echo "Latest tag = $$(git tag | sort -nr | head -n1)"
11+
echo "Latest tag = $$(git tag -l '[0-9]*' --sort=-v:refname | head -n1)"
1212
echo "HEAD SHA = $$(git rev-parse HEAD)"
13-
echo "Latest tag SHA = $$(git tag | sort -nr | head -n1 | xargs git rev-parse)"
14-
@test "$$(git rev-parse HEAD)" = "$$(git tag | sort -nr | head -n1 | xargs git rev-parse)"
13+
echo "Latest tag SHA = $$(git tag -l '[0-9]*' --sort=-v:refname | head -n1 | xargs git rev-parse)"
14+
@test "$$(git rev-parse HEAD)" = "$$(git tag -l '[0-9]*' --sort=-v:refname | head -n1 | xargs git rev-parse)"
1515
make force_release
1616

1717
force_release: clean

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy