Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-02-14 23:07:46 +0400
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-02-14 23:07:46 +0400
commit428af5ea62ef89dc5e2c2bddb6c910df24dace79 (patch)
tree1f5301531695ed68b9365b304c77ff66ee81f413 /lib
parent04186e9797209ff5a9b2fd4025d458a6e2223f62 (diff)
parente0d62d9c5fa1145ef5378db07f28c3d399e9c34d (diff)
Merge pull request #2890 from cameronyule/support_osx_groups
OS X support for gitlab:check rake tasks
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/task_helpers.rake3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/task_helpers.rake b/lib/tasks/gitlab/task_helpers.rake
index d494125f76c..cb4e34cc0d7 100644
--- a/lib/tasks/gitlab/task_helpers.rake
+++ b/lib/tasks/gitlab/task_helpers.rake
@@ -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