diff --git a/bitbucket/bitbucket.go b/bitbucket/bitbucket.go index af79ebe..31b5201 100644 --- a/bitbucket/bitbucket.go +++ b/bitbucket/bitbucket.go @@ -12,6 +12,9 @@ func Get(conf *types.Conf) []types.Repo { repos := []types.Repo{} for _, repo := range conf.Source.BitBucket { client := bitbucket.NewBasicAuth(repo.Username, repo.Password) + if repo.User == "" { + repo.User = repo.Username + } if repo.Url == "" { repo.Url = bitbucket.DEFAULT_BITBUCKET_API_BASE_URL } else {