mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
cmd/dist: use correct hg tag for go version
When looking for suitable tag always start from current version, not the tip. R=minux.ma, rsc CC=golang-dev https://golang.org/cl/5731059
This commit is contained in:
parent
f35fa85a3f
commit
36708a40e0
2
src/cmd/dist/build.c
vendored
2
src/cmd/dist/build.c
vendored
@ -209,7 +209,7 @@ findgoversion(void)
|
||||
// What are the tags along the current branch?
|
||||
tag = "";
|
||||
rev = ".";
|
||||
run(&b, goroot, CheckExit, "hg", "log", "-b", bstr(&branch), "--template", "{tags} + ", nil);
|
||||
run(&b, goroot, CheckExit, "hg", "log", "-b", bstr(&branch), "-r", ".:0", "--template", "{tags} + ", nil);
|
||||
splitfields(&tags, bstr(&b));
|
||||
nrev = 0;
|
||||
for(i=0; i<tags.len; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user