Fix critical issue with dir permission for namespaces
This commit is contained in:
parent
585eb70588
commit
7ae851f642
1 changed files with 1 additions and 1 deletions
|
@ -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) unless File.exists?(namespace_dir_path)
|
||||
Dir.mkdir(namespace_dir_path, 0770) unless File.exists?(namespace_dir_path)
|
||||
end
|
||||
|
||||
def move_dir
|
||||
|
|
Loading…
Reference in a new issue