summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-10-05 14:31:33 +0200
committerJames Lopez <james@jameslopez.es>2016-10-05 14:31:33 +0200
commit66c7f5cb46d446a1c6c89ba888efd9e5f74f876d (patch)
treebffae1a91133e56a00cfecfd20784d1bf3c81348
parentc9396bc7c5b7b55fd01ec63279f5ab4223c0a184 (diff)
downloadgitlab-ce-fix/mirror-update-error.tar.gz
fix empty import URL errorsfix/mirror-update-error
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 507228606df..4beec36242d 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -494,7 +494,7 @@ class Project < ActiveRecord::Base
end
def import_url
- if import_data && super
+ if import_data && super.present?
import_url = Gitlab::UrlSanitizer.new(super, credentials: import_data.credentials)
import_url.full_url
else