Commit 0ce7ad57 authored by timspin's avatar timspin

Adds refs to gitolite conf with $ at the end

parent 666cdb22
...@@ -106,13 +106,13 @@ module Gitlab ...@@ -106,13 +106,13 @@ module Gitlab
name_writers = project.repository_writers name_writers = project.repository_writers
name_masters = project.repository_masters name_masters = project.repository_masters
pr_br = project.protected_branches.map(&:name).join(" ") pr_br = project.protected_branches.map(&:name).join("$ ")
repo.clean_permissions repo.clean_permissions
# Deny access to protected branches for writers # Deny access to protected branches for writers
unless name_writers.blank? || pr_br.blank? unless name_writers.blank? || pr_br.blank?
repo.add_permission("-", pr_br, name_writers) repo.add_permission("-", pr_br.strip + "$ ", name_writers)
end end
# Add read permissions # Add read permissions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment