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
diff options
context:
space:
mode:
authorLee Tickett <lee@tickett.net>2019-08-29 19:19:07 +0300
committerNick Thomas <nick@gitlab.com>2019-08-29 19:19:07 +0300
commit72390953da802311180f53b6a646d80bc1da2849 (patch)
tree46d9baeab2c3ab91bca249c446b822b5dd956531 /app/models/remote_mirror.rb
parente6869b8f6c5a589cc9807e2a797599fb7a4a968e (diff)
Handle invalid mirror url
Diffstat (limited to 'app/models/remote_mirror.rb')
-rw-r--r--app/models/remote_mirror.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/remote_mirror.rb b/app/models/remote_mirror.rb
index c9ee0653d86..41e63986286 100644
--- a/app/models/remote_mirror.rb
+++ b/app/models/remote_mirror.rb
@@ -200,6 +200,7 @@ class RemoteMirror < ApplicationRecord
result.password = '*****' if result.password
result.user = '*****' if result.user && result.user != 'git' # tokens or other data may be saved as user
result.to_s
+ rescue URI::Error
end
def ensure_remote!