diff options
author | James Lopez <james@jameslopez.es> | 2016-07-18 11:02:07 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-07-18 11:02:07 +0200 |
commit | 60a2b3eff2b91ae8db6eac4df95059c5fcd3eb31 (patch) | |
tree | 6f80871c24214534d46004f42535adf59f4e7c1f /lib/gitlab/import_export/repo_restorer.rb | |
parent | 240a4aa62ab24a8a7b5545dee6bd2cf00ad7596e (diff) | |
download | gitlab-ce-60a2b3eff2b91ae8db6eac4df95059c5fcd3eb31.tar.gz |
allow empty repos on import/export
Diffstat (limited to 'lib/gitlab/import_export/repo_restorer.rb')
-rw-r--r-- | lib/gitlab/import_export/repo_restorer.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/gitlab/import_export/repo_restorer.rb b/lib/gitlab/import_export/repo_restorer.rb index 546dae4d122..f84de652a57 100644 --- a/lib/gitlab/import_export/repo_restorer.rb +++ b/lib/gitlab/import_export/repo_restorer.rb @@ -3,15 +3,14 @@ module Gitlab class RepoRestorer include Gitlab::ImportExport::CommandLineUtil - def initialize(project:, shared:, path_to_bundle:, wiki: false) + def initialize(project:, shared:, path_to_bundle:) @project = project @path_to_bundle = path_to_bundle @shared = shared - @wiki = wiki end def restore - return wiki? unless File.exist?(@path_to_bundle) + return true unless File.exist?(@path_to_bundle) FileUtils.mkdir_p(path_to_repo) @@ -30,10 +29,6 @@ module Gitlab def path_to_repo @project.repository.path_to_repo end - - def wiki? - @wiki - end end end end |