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
Boxiang Sun
gitlab-ce
Commits
607be412
Commit
607be412
authored
Aug 27, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #985 from timspin/fix-gitolite-refs
Adds refs to gitolite.conf with $ at the end
parents
cb35a80e
0ce7ad57
Changes
1
Hide 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 @
607be412
...
@@ -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
...
...
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