mirror of
https://github.com/golang/go
synced 2024-11-25 07:27:57 -07:00
version.bash: strip changeset hash from 'hg tags' output
Fixes #1651. R=rsc CC=golang-dev https://golang.org/cl/4300054
This commit is contained in:
parent
fbeaa869f6
commit
0f46aaf8b3
@ -18,6 +18,7 @@ fi
|
|||||||
|
|
||||||
# Find most recent known release tag.
|
# Find most recent known release tag.
|
||||||
TAG=$(hg tags |
|
TAG=$(hg tags |
|
||||||
|
sed 's/:.*//' |
|
||||||
sort -rn -k2 |
|
sort -rn -k2 |
|
||||||
awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
|
awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
|
||||||
sed -n 1p)
|
sed -n 1p)
|
||||||
|
Loading…
Reference in New Issue
Block a user