summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-17 00:43:35 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-17 00:43:35 +0100
commit9cab79cbe640ba8ec842b2f5103871ae447ab1ab (patch)
tree5ccacf816b5a8abcaea25df3ac54250a1b01f727 /lib/tasks
parent8f9dec2883060b6a1610d64b9488efe7859963c8 (diff)
downloadgitlab-ce-9cab79cbe640ba8ec842b2f5103871ae447ab1ab.tar.gz
Fix gitolite config checks for old Gitolite versions
Fixes #2608
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/check.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 5b452fd1a12..826b78ec5b1 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?