Commit 7fad4a9636eb3895118004bece67baad4dafbfae
Exists in
master
and in
4 other branches
Merge pull request #2989 from PierreGambarotto/master
archive download : namespace directory not created
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 | ... | ... |