Skip to content

Commit 13ba8ad

Browse files
committed
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 <[email protected]>
1 parent a072e66 commit 13ba8ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/vcs/vcs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ func bitbucketVCS(match map[string]string) error {
731731
var resp struct {
732732
SCM string `json:"scm"`
733733
}
734-
url := expand(match, "https://api.bitbucket.org/1.0/repositories/{bitname}")
734+
url := expand(match, "https://api.bitbucket.org/2.0/repositories/{bitname}?fields=scm")
735735
data, err := httpGET(url)
736736
if err != nil {
737737
return err

0 commit comments

Comments
 (0)