diff --git a/lib/gitlab/import_export/repo_restorer.rb b/lib/gitlab/import_export/repo_restorer.rb index 3c2b801b571..546dae4d122 100644 --- a/lib/gitlab/import_export/repo_restorer.rb +++ b/lib/gitlab/import_export/repo_restorer.rb @@ -11,8 +11,7 @@ module Gitlab end def restore - return true if wiki? - return false unless File.exist?(@path_to_bundle) + return wiki? unless File.exist?(@path_to_bundle) FileUtils.mkdir_p(path_to_repo)