diff options
author | Lee Tickett <lee@tickett.net> | 2019-08-29 19:19:07 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-08-29 19:19:07 +0300 |
commit | 72390953da802311180f53b6a646d80bc1da2849 (patch) | |
tree | 46d9baeab2c3ab91bca249c446b822b5dd956531 /app/models/remote_mirror.rb | |
parent | e6869b8f6c5a589cc9807e2a797599fb7a4a968e (diff) |
Handle invalid mirror url
Diffstat (limited to 'app/models/remote_mirror.rb')
-rw-r--r-- | app/models/remote_mirror.rb | 1 |
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! |