Commit 155d02c8 authored by James Lopez's avatar James Lopez

Merge branch 'feature/project-import' of gitlab.com:gitlab-org/gitlab-ce into...

Merge branch 'feature/project-import' of gitlab.com:gitlab-org/gitlab-ce into feature/project-export-ui-experimental
parents 6930f9a9 bd5b019a
...@@ -23,5 +23,9 @@ module Gitlab ...@@ -23,5 +23,9 @@ module Gitlab
def version_filename def version_filename
'VERSION' 'VERSION'
end end
def version
VERSION
end
end end
end end
...@@ -10,7 +10,6 @@ module Gitlab ...@@ -10,7 +10,6 @@ module Gitlab
end end
def save def save
FileUtils.mkdir_p(@shared.export_path)
File.write(full_path, project_json_tree) File.write(full_path, project_json_tree)
true true
rescue => e rescue => e
......
...@@ -25,8 +25,8 @@ module Gitlab ...@@ -25,8 +25,8 @@ module Gitlab
end end
def verify_version!(version) def verify_version!(version)
if Gem::Version.new(version) > Gem::Version.new(Gitlab::ImportExport.VERSION) if Gem::Version.new(version) > Gem::Version.new(Gitlab::ImportExport.version)
raise Gitlab::ImportExport::Error("Import version mismatch: Required <= #{Gitlab::ImportExport.VERSION} but was #{version}") raise Gitlab::ImportExport::Error("Import version mismatch: Required <= #{Gitlab::ImportExport.version} but was #{version}")
else else
true true
end end
......
...@@ -11,8 +11,10 @@ module Gitlab ...@@ -11,8 +11,10 @@ module Gitlab
end end
def save def save
FileUtils.mkdir_p(@shared.export_path)
File.open(version_file, 'w') do |file| File.open(version_file, 'w') do |file|
file.write(Gitlab::ImportExport.VERSION) file.write(Gitlab::ImportExport.version)
end end
rescue => e rescue => e
@shared.error(e) @shared.error(e)
......
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