From 9cf993972a3aec68219a37e0a0d26435046d9d33 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas 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 73ce2712..b330377f 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -567,7 +567,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? @@ -596,7 +596,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?