commit | 13ba8ad772dfbf0f451b5dd0679e9c5605afc05d | [log] [tgz] |
---|---|---|
author | David Symonds <dsymonds@golang.org> | Tue Dec 18 12:41:13 2018 +1100 |
committer | David Symonds <dsymonds@golang.org> | Tue Dec 18 02:00:41 2018 +0000 |
tree | 66531565407edf5b3ded8de8e25e9f248ce9a4eb | |
parent | a072e661040ecdb936ae4a592d04f74f8d77199f [diff] |
go/vcs: use Bitbucket v2 REST API This ports the change made to cmd/go in https://go-review.googlesource.com/36219 (Feb 2017). Change-Id: I04e55749b187e21d140500b8878866bd3ceea174 Reviewed-on: https://go-review.googlesource.com/c/154677 Reviewed-by: Andrew Gerrand <adg@golang.org>
diff --git a/go/vcs/vcs.go b/go/vcs/vcs.go index be18b57..0451e97 100644 --- a/go/vcs/vcs.go +++ b/go/vcs/vcs.go
@@ -731,7 +731,7 @@ var resp struct { SCM string `json:"scm"` } - url := expand(match, "https://api.bitbucket.org/1.0/repositories/{bitname}") + url := expand(match, "https://api.bitbucket.org/2.0/repositories/{bitname}?fields=scm") data, err := httpGET(url) if err != nil { return err