Fix dir permission on creation

This commit is contained in:
Dmitriy Zaporozhets 2012-11-26 13:07:16 +02:00
parent ca8bb9dff8
commit 2d5a6fc850
2 changed files with 2 additions and 2 deletions

View file

@ -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