diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-26 13:07:16 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-26 13:07:16 +0200 |
commit | 2d5a6fc850844fb30c94c749fed5564f54052b77 (patch) | |
tree | 70f7e5ec93418010bb8d0b2f090a84f6dad7b11c /app/models/namespace.rb | |
parent | ca8bb9dff80a6ad26efd7b10a1854c8ca033f9ad (diff) | |
download | gitlab-ce-2d5a6fc850844fb30c94c749fed5564f54052b77.tar.gz |
Fix dir permission on creation
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index 7fe86440339..013660406af 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -44,7 +44,7 @@ class Namespace < ActiveRecord::Base def ensure_dir_exist namespace_dir_path = File.join(Gitlab.config.git_base_path, path) - Dir.mkdir(namespace_dir_path, 0770) unless File.exists?(namespace_dir_path) + system("mkdir -m 770 #{namespace_dir_path}") unless File.exists?(namespace_dir_path) end def move_dir |