OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed3f440
)
fix archive download : not creating namespace directory
author
Pierre Gambarotto
<pierre.gambarotto@n7.fr>
Thu, 14 Feb 2013 13:29:24 +0000
(14:29 +0100)
committer
Pierre Gambarotto
<pierre.gambarotto@n7.fr>
Thu, 14 Feb 2013 13:29:24 +0000
(14:29 +0100)
app/models/repository.rb
patch
|
blob
|
history
diff --git
a/app/models/repository.rb
b/app/models/repository.rb
index
37431fe
..
8bcafba
100644
(file)
--- 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