summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-14 05:53:07 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-14 05:53:07 -0800
commit7fad4a9636eb3895118004bece67baad4dafbfae (patch)
tree925c8a119eb9a3d1b133f3e959520a374babccb1 /app
parentc9ca15e8d6d77b12f6cba3dfccce1427ba760d39 (diff)
parentb6b6b640b1728ddd0d076ed64937e37671da9dfa (diff)
downloadgitlab-ce-7fad4a9636eb3895118004bece67baad4dafbfae.tar.gz
Merge pull request #2989 from PierreGambarotto/master
archive download : namespace directory not created
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 37431fe3b0e..8bcafbacda1 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