]> Cypherpunks repositories - gostls13.git/commitdiff
misc/makerelease: fix build
authorAndrew Gerrand <adg@golang.org>
Mon, 15 Dec 2014 01:54:29 +0000 (12:54 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 15 Dec 2014 01:55:29 +0000 (01:55 +0000)
Fixes #9308

Change-Id: I0121adbbecc893eb93afc3321ecff97ea146d150
Reviewed-on: https://go-review.googlesource.com/1560
Reviewed-by: Andrew Gerrand <adg@golang.org>
misc/makerelease/makerelease.go

index e2bc28db913190555def2dfbf9f4ca3e5fb7ad9c..43b1f3d115d28152d5db159d91736c9c442e5700 100644 (file)
@@ -505,8 +505,6 @@ func (b *Build) extras() error {
 }
 
 func (b *Build) get(repoPath, revision string) error {
-       dest := filepath.Join(b.gopath, "src", filepath.FromSlash(repoPath))
-
        // Fetch the packages (without building/installing).
        _, err := b.run(b.gopath, filepath.Join(b.root, "bin", "go"),
                "get", "-d", repoPath+"/...")
@@ -516,7 +514,6 @@ func (b *Build) get(repoPath, revision string) error {
 
        // Update the repo to the specified revision.
        dest := filepath.Join(b.gopath, "src", filepath.FromSlash(repoPath))
-       var err error
        switch {
        case exists(filepath.Join(dest, ".git")):
                _, err = b.run(dest, "git", "checkout", revision)