mirror of
https://github.com/golang/go
synced 2024-11-22 02:04:40 -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.
|
||||
TAG=$(hg tags |
|
||||
sed 's/:.*//' |
|
||||
sort -rn -k2 |
|
||||
awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
|
||||
sed -n 1p)
|
||||
|
Loading…
Reference in New Issue
Block a user