Commit 607be412 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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

Adds refs to gitolite.conf with $ at the end
parents cb35a80e 0ce7ad57
...@@ -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