Merge pull request #792 from cedk/patch-1
Missing URL for bitbucket Repo
This commit is contained in:
commit
6ed8542f7d
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,7 @@ func (r *Bitbucket) GetRepos(user *model.User) ([]*model.Repo, error) {
|
||||||
// these are the urls required to clone the repository
|
// these are the urls required to clone the repository
|
||||||
// TODO use the bitbucketurl.Host and bitbucketurl.Scheme instead of hardcoding
|
// TODO use the bitbucketurl.Host and bitbucketurl.Scheme instead of hardcoding
|
||||||
// so that we can support Stash.
|
// so that we can support Stash.
|
||||||
|
var html = fmt.Sprintf("https://bitbucket.org/%s/%s", item.Owner, item.Name)
|
||||||
var clone = fmt.Sprintf("https://bitbucket.org/%s/%s.git", item.Owner, item.Name)
|
var clone = fmt.Sprintf("https://bitbucket.org/%s/%s.git", item.Owner, item.Name)
|
||||||
var ssh = fmt.Sprintf("git@bitbucket.org:%s/%s.git", item.Owner, item.Name)
|
var ssh = fmt.Sprintf("git@bitbucket.org:%s/%s.git", item.Owner, item.Name)
|
||||||
|
|
||||||
|
@ -165,6 +166,7 @@ func (r *Bitbucket) GetRepos(user *model.User) ([]*model.Repo, error) {
|
||||||
Owner: item.Owner,
|
Owner: item.Owner,
|
||||||
Name: item.Name,
|
Name: item.Name,
|
||||||
Private: item.Private,
|
Private: item.Private,
|
||||||
|
URL: html,
|
||||||
CloneURL: clone,
|
CloneURL: clone,
|
||||||
GitURL: clone,
|
GitURL: clone,
|
||||||
SSHURL: ssh,
|
SSHURL: ssh,
|
||||||
|
|
Loading…
Reference in a new issue