From 9cab79cbe640ba8ec842b2f5103871ae447ab1ab Mon Sep 17 00:00:00 2001 From: Riyad Preukschas <riyad@informatik.uni-bremen.de> Date: Thu, 17 Jan 2013 00:43:35 +0100 Subject: [PATCH] Fix gitolite config checks for old Gitolite versions Fixes #2608 --- lib/tasks/gitlab/check.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index 5b452fd1a1..826b78ec5b 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -570,7 +570,7 @@ namespace :gitlab do else # assume older version # see https://github.com/sitaramc/gitolite/blob/v2.3/conf/example.gitolite.rc#L49 - "$GL_GITCONFIG_KEYS" + "\\$GL_GITCONFIG_KEYS" end option_value = ".*" if open(gitoliterc_path).grep(/#{option_name}\s*=[>]?\s*["']#{option_value}["']/).any? @@ -599,7 +599,7 @@ namespace :gitlab do else # assume older version # see https://github.com/sitaramc/gitolite/blob/v2.3/conf/example.gitolite.rc#L32 - "$REPO_UMASK" + "\\$REPO_UMASK" end option_value = "0007" if open(gitoliterc_path).grep(/#{option_name}\s*=[>]?\s*#{option_value}/).any? -- 2.30.9