Commit 9cab79cbe640ba8ec842b2f5103871ae447ab1ab
1 parent
8f9dec28
Exists in
master
and in
4 other branches
Fix gitolite config checks for old Gitolite versions
Fixes #2608
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/tasks/gitlab/check.rake
@@ -570,7 +570,7 @@ namespace :gitlab do | @@ -570,7 +570,7 @@ namespace :gitlab do | ||
570 | else | 570 | else |
571 | # assume older version | 571 | # assume older version |
572 | # see https://github.com/sitaramc/gitolite/blob/v2.3/conf/example.gitolite.rc#L49 | 572 | # see https://github.com/sitaramc/gitolite/blob/v2.3/conf/example.gitolite.rc#L49 |
573 | - "$GL_GITCONFIG_KEYS" | 573 | + "\\$GL_GITCONFIG_KEYS" |
574 | end | 574 | end |
575 | option_value = ".*" | 575 | option_value = ".*" |
576 | if open(gitoliterc_path).grep(/#{option_name}\s*=[>]?\s*["']#{option_value}["']/).any? | 576 | if open(gitoliterc_path).grep(/#{option_name}\s*=[>]?\s*["']#{option_value}["']/).any? |
@@ -599,7 +599,7 @@ namespace :gitlab do | @@ -599,7 +599,7 @@ namespace :gitlab do | ||
599 | else | 599 | else |
600 | # assume older version | 600 | # assume older version |
601 | # see https://github.com/sitaramc/gitolite/blob/v2.3/conf/example.gitolite.rc#L32 | 601 | # see https://github.com/sitaramc/gitolite/blob/v2.3/conf/example.gitolite.rc#L32 |
602 | - "$REPO_UMASK" | 602 | + "\\$REPO_UMASK" |
603 | end | 603 | end |
604 | option_value = "0007" | 604 | option_value = "0007" |
605 | if open(gitoliterc_path).grep(/#{option_name}\s*=[>]?\s*#{option_value}/).any? | 605 | if open(gitoliterc_path).grep(/#{option_name}\s*=[>]?\s*#{option_value}/).any? |