Skip to content
Snippets Groups Projects
Commit 24a7c0f6 authored by Fumiya Nakamura's avatar Fumiya Nakamura
Browse files

Fix file_name for archive

parent e5080755
No related branches found
No related tags found
3 merge requests!3250Add gem install bundler to installation guide,!3140Patch 1,!3001Fix file_name for archive
Loading
Loading
@@ -151,7 +151,7 @@ class Repository
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)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment