Commit 20868acc96f953a86d17e47787638981be89389b

Authored by Fumiya Nakamura
1 parent a1d10611

Fix file_path to correspond with the name

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/repository.rb
@@ -134,7 +134,7 @@ class Repository @@ -134,7 +134,7 @@ class Repository
134 # Build file path 134 # Build file path
135 file_name = self.path_with_namespace.gsub("/","_") + "-" + commit.id.to_s + ".tar.gz" 135 file_name = self.path_with_namespace.gsub("/","_") + "-" + commit.id.to_s + ".tar.gz"
136 storage_path = Rails.root.join("tmp", "repositories") 136 storage_path = Rails.root.join("tmp", "repositories")
137 - file_path = File.join(storage_path, file_name) 137 + file_path = File.join(storage_path, self.path_with_namespace, file_name)
138 138
139 # Put files into a directory before archiving 139 # Put files into a directory before archiving
140 prefix = self.path_with_namespace + "/" 140 prefix = self.path_with_namespace + "/"