Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
a5748df2d4eb
Commit
428af5ea
authored
Feb 14, 2013
by
Riyad Preukschas
Browse files
Merge pull request #2890 from cameronyule/support_osx_groups
OS X support for gitlab:check rake tasks
parents
c75c02bbb71c
bc69ebc4c992
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/tasks/gitlab/task_helpers.rake
View file @
a5748df2
...
...
@@ -77,8 +77,7 @@ namespace :gitlab do
end
def
gid_for
(
group_name
)
group_line
=
File
.
read
(
"/etc/group"
).
lines
.
select
{
|
l
|
l
.
start_with?
(
"
#{
group_name
}
:"
)}.
first
group_line
.
split
(
":"
)[
2
].
to_i
Etc
.
getgrnam
(
group_name
).
gid
end
def
warn_user_is_not_gitlab
...
...
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