Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFumiya Nakamura <nakamurafumiya003@gmail.com>2013-02-15 16:58:57 +0400
committerFumiya Nakamura <nakamurafumiya003@gmail.com>2013-02-15 17:00:15 +0400
commita1d106110d81eee71afb4563bce2ee88ff27a70e (patch)
tree7bc2af5c0fc0614b948e9cacff1839e2873b0dfa /app
parentf9dd547aa7289c59a389ce1393c4b3eb4e0239f4 (diff)
Fix file_name for archive
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 8bcafbacda1..e7bdb2382cf 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -132,7 +132,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)