From: Pierre Gambarotto Date: Thu, 14 Feb 2013 13:29:24 +0000 (+0100) Subject: fix archive download : not creating namespace directory X-Git-Tag: v5.0.0~286^2 X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=b6b6b640b1728ddd0d076ed64937e37671da9dfa;p=wvm%2Fgitlab.git fix archive download : not creating namespace directory --- diff --git a/app/models/repository.rb b/app/models/repository.rb index 37431fe3b..8bcafbacd 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -141,7 +141,7 @@ class Repository # Create file if not exists unless File.exists?(file_path) - FileUtils.mkdir_p storage_path + FileUtils.mkdir_p File.dirname(file_path) file = self.repo.archive_to_file(ref, prefix, file_path) end