提交 504c186f 编写于 作者: J James Lopez

fix version issue

上级 5777ad9a
......@@ -23,5 +23,9 @@ module Gitlab
def version_filename
'VERSION'
end
def version
VERSION
end
end
end
......@@ -10,7 +10,6 @@ module Gitlab
end
def save
FileUtils.mkdir_p(@shared.export_path)
File.write(full_path, project_json_tree)
true
rescue => e
......
......@@ -11,8 +11,10 @@ module Gitlab
end
def save
FileUtils.mkdir_p(@shared.export_path)
File.open(version_file, 'w') do |file|
file.write(Gitlab::ImportExport.VERSION)
file.write(Gitlab::ImportExport.version)
end
rescue => e
@shared.error(e.message)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册