]> Cypherpunks repositories - gostls13.git/commitdiff
misc/makerelease: a couple of small fixes
authorAndrew Gerrand <adg@golang.org>
Fri, 16 Jan 2015 02:49:06 +0000 (13:49 +1100)
committerAndrew Gerrand <adg@golang.org>
Fri, 16 Jan 2015 03:31:46 +0000 (03:31 +0000)
Change-Id: Iec19d6152b95ba67daac366b32d42f69e1dba9a4
Reviewed-on: https://go-review.googlesource.com/2951
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/makerelease/makerelease.go

index b49b941f1c427809e31e226970982cc68ea9e01a..0af0ebf2c95471852c35c639222b740d10c3ecbf 100644 (file)
@@ -141,10 +141,6 @@ func main() {
                os.Exit(2)
        }
        flag.Parse()
-       if *tag == "" {
-               fmt.Fprintln(os.Stderr, "you must specify a -tag")
-               os.Exit(2)
-       }
        if flag.NArg() == 0 {
                flag.Usage()
        }
@@ -210,6 +206,10 @@ func main() {
                                }
                        }
                }
+               if *tag == "" {
+                       fmt.Fprintln(os.Stderr, "you must specify a -tag")
+                       os.Exit(2)
+               }
                if err := b.Do(); err != nil {
                        log.Printf("%s: %v", targ, err)
                        ok = false
@@ -755,6 +755,7 @@ func setupOAuthClient() error {
                ClientSecret: "8YLFgOhXIELWbO-NtF3iqIQz",
                Endpoint:     google.Endpoint,
                Scopes:       []string{storage.DevstorageRead_writeScope},
+               RedirectURL:  "oob",
        }
        url := config.AuthCodeURL("junk")
        fmt.Println("Visit the following URL, obtain an authentication" +