Commit 7ae851f6422ffeb51bf587e9621b3dc21180221d

Authored by Dmitriy Zaporozhets
1 parent 585eb705

Fix critical issue with dir permission for namespaces

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/namespace.rb
... ... @@ -44,7 +44,7 @@ class Namespace < ActiveRecord::Base
44 44  
45 45 def ensure_dir_exist
46 46 namespace_dir_path = File.join(Gitlab.config.git_base_path, path)
47   - Dir.mkdir(namespace_dir_path) unless File.exists?(namespace_dir_path)
  47 + Dir.mkdir(namespace_dir_path, 0770) unless File.exists?(namespace_dir_path)
48 48 end
49 49  
50 50 def move_dir
... ...