Commit bd5c749f authored by James Lopez's avatar James Lopez

fix file.write

parent 86e47510
Pipeline #3509171 passed with stages
in 496 minutes and 54 seconds
......@@ -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