summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2014-06-02 08:48:20 +1000
committerAndrew Gerrand <adg@golang.org>2014-06-02 08:48:20 +1000
commit5cf0ecd9d8b6056675d7e0fe89875af09f37a6aa (patch)
treef275cbcc978791e76aa2e71a2f7d44a297a1e77a
parent065227c5040bf1f30b6dc36c53c333beebf4de21 (diff)
downloadgo-5cf0ecd9d8b6056675d7e0fe89875af09f37a6aa.tar.gz
cmd/dist: only use beta tag in version string for the exact revision
Right now, any revision on the default branch after go1.3beta2 is described by "go verson" as go1.3beta2 plus some revision. That's OK for now, but once go1.3 is released, that will seem wrong. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/98650046
-rw-r--r--src/cmd/dist/build.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c
index 59852b012..6884e0aae 100644
--- a/src/cmd/dist/build.c
+++ b/src/cmd/dist/build.c
@@ -290,9 +290,8 @@ findgoversion(void)
p = tags.p[i];
if(streq(p, "+"))
nrev++;
- // NOTE: Can reenable the /* */ code when we want to
- // start reporting versions named 'weekly' again.
- if(/*hasprefix(p, "weekly.") ||*/ hasprefix(p, "go")) {
+ // Only show the beta tag for the exact revision.
+ if(hasprefix(p, "go") && (!contains(p, "beta") || nrev == 0)) {
tag = xstrdup(p);
// If this tag matches the current checkout
// exactly (no "+" yet), don't show extra