Commit 66c7f5cb authored by James Lopez's avatar James Lopez

fix empty import URL errors

parent c9396bc7
...@@ -494,7 +494,7 @@ class Project < ActiveRecord::Base ...@@ -494,7 +494,7 @@ class Project < ActiveRecord::Base
end end
def import_url def import_url
if import_data && super if import_data && super.present?
import_url = Gitlab::UrlSanitizer.new(super, credentials: import_data.credentials) import_url = Gitlab::UrlSanitizer.new(super, credentials: import_data.credentials)
import_url.full_url import_url.full_url
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment