From 7365ae111e2f552255604a022e9df5f00a419c73 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Wed, 25 Nov 2015 17:09:57 -0800 Subject: [PATCH] Temporary bandaid to fix Bitbucket case sensitivity. --- remote/bitbucket/helper.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/remote/bitbucket/helper.go b/remote/bitbucket/helper.go index cb9a9062..b6072bd6 100644 --- a/remote/bitbucket/helper.go +++ b/remote/bitbucket/helper.go @@ -11,8 +11,8 @@ import ( // repository structure to the common Drone repository structure. func convertRepo(from *Repo) *model.Repo { repo := model.Repo{ - Owner: from.Owner.Login, - Name: from.Name, + Owner: strings.Split(from.FullName, "/")[0], + Name: strings.Split(from.FullName, "/")[1], FullName: from.FullName, Link: from.Links.Html.Href, IsPrivate: from.IsPrivate, @@ -93,8 +93,8 @@ func cloneLink(repo Repo) string { // repository structure to the simplified Drone repository structure. func convertRepoLite(from *Repo) *model.RepoLite { return &model.RepoLite{ - Owner: from.Owner.Login, - Name: from.Name, + Owner: strings.Split(from.FullName, "/")[0], + Name: strings.Split(from.FullName, "/")[1], FullName: from.FullName, Avatar: from.Owner.Links.Avatar.Href, }