Commit 0ce7ad57b74053be1525dd04ba444a0174073b3c

Authored by timspin
1 parent 666cdb22

Adds refs to gitolite conf with $ at the end

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/gitlab/gitolite.rb
... ... @@ -106,13 +106,13 @@ module Gitlab
106 106 name_writers = project.repository_writers
107 107 name_masters = project.repository_masters
108 108  
109   - pr_br = project.protected_branches.map(&:name).join(" ")
  109 + pr_br = project.protected_branches.map(&:name).join("$ ")
110 110  
111 111 repo.clean_permissions
112 112  
113 113 # Deny access to protected branches for writers
114 114 unless name_writers.blank? || pr_br.blank?
115   - repo.add_permission("-", pr_br, name_writers)
  115 + repo.add_permission("-", pr_br.strip + "$ ", name_writers)
116 116 end
117 117  
118 118 # Add read permissions
... ...