diff --git a/go/vcs/vcs.go b/go/vcs/vcs.go index be18b578d3ad68..0451e97b08677c 100644 --- a/go/vcs/vcs.go +++ b/go/vcs/vcs.go @@ -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