Commit 9cab79cbe640ba8ec842b2f5103871ae447ab1ab

Authored by Riyad Preukschas
1 parent 8f9dec28

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 570 else
571 571 # assume older version
572 572 # see https://github.com/sitaramc/gitolite/blob/v2.3/conf/example.gitolite.rc#L49
573   - "$GL_GITCONFIG_KEYS"
  573 + "\\$GL_GITCONFIG_KEYS"
574 574 end
575 575 option_value = ".*"
576 576 if open(gitoliterc_path).grep(/#{option_name}\s*=[>]?\s*["']#{option_value}["']/).any?
... ... @@ -599,7 +599,7 @@ namespace :gitlab do
599 599 else
600 600 # assume older version
601 601 # see https://github.com/sitaramc/gitolite/blob/v2.3/conf/example.gitolite.rc#L32
602   - "$REPO_UMASK"
  602 + "\\$REPO_UMASK"
603 603 end
604 604 option_value = "0007"
605 605 if open(gitoliterc_path).grep(/#{option_name}\s*=[>]?\s*#{option_value}/).any?
... ...