diff --git a/remote/bitbucketserver/bitbucketserver.go b/remote/bitbucketserver/bitbucketserver.go index ab2d52984..8271d2b06 100644 --- a/remote/bitbucketserver/bitbucketserver.go +++ b/remote/bitbucketserver/bitbucketserver.go @@ -180,7 +180,7 @@ func (c *client) Repo(u *model.User, owner, name string) (*model.Repo, error) { if item.Name == "http" { uri, err := url.Parse(item.Href) if err != nil { - return err + return nil, err } uri.User = nil repo.Clone = uri.String()