diff options
author | Fumiya Nakamura <nakamurafumiya003@gmail.com> | 2013-02-15 16:58:57 +0400 |
---|---|---|
committer | Fumiya Nakamura <nakamurafumiya003@gmail.com> | 2013-02-15 17:00:15 +0400 |
commit | a1d106110d81eee71afb4563bce2ee88ff27a70e (patch) | |
tree | 7bc2af5c0fc0614b948e9cacff1839e2873b0dfa /app | |
parent | f9dd547aa7289c59a389ce1393c4b3eb4e0239f4 (diff) |
Fix file_name for archive
Diffstat (limited to 'app')
-rw-r--r-- | app/models/repository.rb | 2 |
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) |