Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
0ce7ad57
Commit
0ce7ad57
authored
Jun 27, 2012
by
timspin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds refs to gitolite conf with $ at the end
parent
666cdb22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/gitolite.rb
lib/gitlab/gitolite.rb
+2
-2
No files found.
lib/gitlab/gitolite.rb
View file @
0ce7ad57
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment