5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 18:45:40 +00:00

Match v* tags only

This commit is contained in:
Neil Alexander 2018-03-05 19:54:18 +00:00
parent 3e6530c813
commit f4aa4f1848

View File

@ -1,7 +1,7 @@
#!/bin/sh
# Get the last tag
TAG=$(git describe --abbrev=0 --tags 2>/dev/null)
TAG=$(git describe --abbrev=0 --tags --match=v* 2>/dev/null)
# Get the number of commits from the last tag, or if not, from
# the first commit