diff --git a/pkg/remote/builtin/gitlab/gitlab.go b/pkg/remote/builtin/gitlab/gitlab.go index 76fcb2d1e..aa5955509 100644 --- a/pkg/remote/builtin/gitlab/gitlab.go +++ b/pkg/remote/builtin/gitlab/gitlab.go @@ -73,7 +73,12 @@ func (r *Gitlab) Login(token, secret string) (*common.User, error) { user.Email = login.Email user.Token = token user.Secret = secret - user.Avatar = r.URL + "/" + login.AvatarUrl + + if strings.HasPrefix(login.AvatarUrl, "http") { + user.Avatar = login.AvatarUrl + } else { + user.Avatar = r.URL + "/" + login.AvatarUrl + } return &user, nil }