Skip to content

Commit

Permalink
go/vcs: use Bitbucket v2 REST API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dsymonds committed Dec 18, 2018
1 parent a072e66 commit 13ba8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vcs/vcs.go
Expand Up @@ -731,7 +731,7 @@ func bitbucketVCS(match map[string]string) error {
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
Expand Down

0 comments on commit 13ba8ad

Please sign in to comment.