diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-06 06:12:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-06 06:12:45 +0300 |
commit | 81e0e55a182eb01ad174fb2b50913eec48c52ca7 (patch) | |
tree | 65a76a5049d5ebc6b785e8664d995dcb4c21724f /app | |
parent | 85c68f14bf3ec5fa77cf12633d33abfd2b9fd9e6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/services/import/validate_remote_git_endpoint_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/import/validate_remote_git_endpoint_service.rb b/app/services/import/validate_remote_git_endpoint_service.rb index 47324e20348..afccb5373a9 100644 --- a/app/services/import/validate_remote_git_endpoint_service.rb +++ b/app/services/import/validate_remote_git_endpoint_service.rb @@ -21,7 +21,7 @@ module Import def execute uri = Gitlab::Utils.parse_url(@params[:url]) - return error("Invalid URL") unless uri + return ServiceResponse.error(message: "#{@params[:url]} is not a valid URL") unless uri uri.fragment = nil url = Gitlab::Utils.append_path(uri.to_s, "/info/refs?service=#{GIT_SERVICE_NAME}") |