Commit a1d10611 authored by Fumiya Nakamura's avatar Fumiya Nakamura
Browse files

Fix file_name for archive

parent 0f94a1ca07ee
......@@ -132,7 +132,7 @@ def archive_repo(ref)
return nil unless commit
# Build file path
file_name = self.path_with_namespace + "-" + commit.id.to_s + ".tar.gz"
file_name = self.path_with_namespace.gsub("/","_") + "-" + commit.id.to_s + ".tar.gz"
storage_path = Rails.root.join("tmp", "repositories")
file_path = File.join(storage_path, file_name)
......
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