Commit b6b6b640b1728ddd0d076ed64937e37671da9dfa

Authored by Pierre Gambarotto
1 parent ed3f4408

fix archive download : not creating namespace directory

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/repository.rb
@@ -141,7 +141,7 @@ class Repository @@ -141,7 +141,7 @@ class Repository
141 141
142 # Create file if not exists 142 # Create file if not exists
143 unless File.exists?(file_path) 143 unless File.exists?(file_path)
144 - FileUtils.mkdir_p storage_path 144 + FileUtils.mkdir_p File.dirname(file_path)
145 file = self.repo.archive_to_file(ref, prefix, file_path) 145 file = self.repo.archive_to_file(ref, prefix, file_path)
146 end 146 end
147 147