Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-06 06:12:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-06 06:12:45 +0300
commit81e0e55a182eb01ad174fb2b50913eec48c52ca7 (patch)
tree65a76a5049d5ebc6b785e8664d995dcb4c21724f /app
parent85c68f14bf3ec5fa77cf12633d33abfd2b9fd9e6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r--app/services/import/validate_remote_git_endpoint_service.rb2
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}")