aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/go-getter/detect_bitbucket.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/go-getter/detect_bitbucket.go')
-rw-r--r--vendor/github.com/hashicorp/go-getter/detect_bitbucket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/hashicorp/go-getter/detect_bitbucket.go b/vendor/github.com/hashicorp/go-getter/detect_bitbucket.go
index a183a17..19047eb 100644
--- a/vendor/github.com/hashicorp/go-getter/detect_bitbucket.go
+++ b/vendor/github.com/hashicorp/go-getter/detect_bitbucket.go
@@ -35,7 +35,7 @@ func (d *BitBucketDetector) detectHTTP(src string) (string, bool, error) {
35 var info struct { 35 var info struct {
36 SCM string `json:"scm"` 36 SCM string `json:"scm"`
37 } 37 }
38 infoUrl := "https://api.bitbucket.org/1.0/repositories" + u.Path 38 infoUrl := "https://api.bitbucket.org/2.0/repositories" + u.Path
39 resp, err := http.Get(infoUrl) 39 resp, err := http.Get(infoUrl)
40 if err != nil { 40 if err != nil {
41 return "", true, fmt.Errorf("error looking up BitBucket URL: %s", err) 41 return "", true, fmt.Errorf("error looking up BitBucket URL: %s", err)