Commit b6b6b640b1728ddd0d076ed64937e37671da9dfa
1 parent
ed3f4408
Exists in
master
and in
4 other branches
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 | 141 | |
142 | 142 | # Create file if not exists |
143 | 143 | unless File.exists?(file_path) |
144 | - FileUtils.mkdir_p storage_path | |
144 | + FileUtils.mkdir_p File.dirname(file_path) | |
145 | 145 | file = self.repo.archive_to_file(ref, prefix, file_path) |
146 | 146 | end |
147 | 147 | ... | ... |