Skip to content

Commit

Permalink
misc/makerelease: fix build
Browse files Browse the repository at this point in the history
Fixes golang#9308

Change-Id: I0121adbbecc893eb93afc3321ecff97ea146d150
Reviewed-on: https://go-review.googlesource.com/1560
Reviewed-by: Andrew Gerrand <[email protected]>
  • Loading branch information
adg committed Dec 15, 2014
1 parent e5ee9a8 commit ab96371
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions misc/makerelease/makerelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -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+"/...")
Expand All @@ -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)
Expand Down

0 comments on commit ab96371

Please sign in to comment.