summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2017-12-20 19:13:11 +0100
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2017-12-20 19:13:11 +0100
commit338f1eaf354a31663afbda3d91776f7f506b90f1 (patch)
tree3be391cb00d0b947d60e39cc7bed2ddbf8f142fc /lib
parentf5290c9738bbca7b130ddc86c0cdcc3f35e34c3a (diff)
downloadgitlab-ce-338f1eaf354a31663afbda3d91776f7f506b90f1.tar.gz
Migrate to Project#empty_repo?zj-empty-repo-importer
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/github_import/importer/repository_importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/importer/repository_importer.rb b/lib/gitlab/github_import/importer/repository_importer.rb
index 9cf2e7fd871..7dd68a0d1cd 100644
--- a/lib/gitlab/github_import/importer/repository_importer.rb
+++ b/lib/gitlab/github_import/importer/repository_importer.rb
@@ -29,7 +29,7 @@ module Gitlab
# this code, e.g. because we had to retry this job after
# `import_wiki?` raised a rate limit error. In this case we'll skip
# re-importing the main repository.
- if project.repository.empty_repo?
+ if project.empty_repo?
import_repository
else
true