Merge pull request #985 from timspin/fix-gitolite-refs

Adds refs to gitolite.conf with $ at the end
This commit is contained in:
Dmitriy Zaporozhets 2012-08-27 11:13:13 -07:00
commit 607be412d4

View file

@ -106,13 +106,13 @@ module Gitlab
name_writers = project.repository_writers
name_masters = project.repository_masters
pr_br = project.protected_branches.map(&:name).join(" ")
pr_br = project.protected_branches.map(&:name).join("$ ")
repo.clean_permissions
# Deny access to protected branches for writers
unless name_writers.blank? || pr_br.blank?
repo.add_permission("-", pr_br, name_writers)
repo.add_permission("-", pr_br.strip + "$ ", name_writers)
end
# Add read permissions