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 /lib | |
parent | ca8bb9dff80a6ad26efd7b10a1854c8ca033f9ad (diff) | |
download | gitlab-ce-2d5a6fc850844fb30c94c749fed5564f54052b77.tar.gz |
Fix dir permission on creation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/project_mover.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/project_mover.rb b/lib/gitlab/project_mover.rb index 4ee50a1ae8d..4b23a5461f4 100644 --- a/lib/gitlab/project_mover.rb +++ b/lib/gitlab/project_mover.rb @@ -16,7 +16,7 @@ module Gitlab def execute # Create new dir if missing new_dir_path = File.join(Gitlab.config.git_base_path, new_dir) - Dir.mkdir(new_dir_path, 0770) unless File.exists?(new_dir_path) + system("mkdir -m 770 #{new_dir_path}") unless File.exists?(new_dir_path) old_path = File.join(Gitlab.config.git_base_path, old_dir, "#{project.path}.git") new_path = File.join(new_dir_path, "#{project.path}.git") |