BigW Consortium Gitlab

Commit bd5c749f by James Lopez

fix file.write

parent 86e47510
......@@ -9,9 +9,7 @@ module Gitlab
def save
FileUtils.mkdir_p(@shared.export_path)
File.open(version_file, 'w') do |file|
file.write(Gitlab::ImportExport.version)
end
File.write(version_file, Gitlab::ImportExport.version, mode: 'w')
rescue => e
@shared.error(e.message)
false
......
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