From c97310e3cad096a7069a5215a96637cd2ffe11b2 Mon Sep 17 00:00:00 2001 From: Mike Hill Date: Thu, 28 Aug 2014 10:14:20 -0500 Subject: [PATCH] #232: Use "single_quote" helper instead of "if" condition --- files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb b/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb index 5f99620..eabf660 100644 --- a/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb +++ b/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb @@ -64,9 +64,7 @@ production: &base # When not specified the default issue_closing_pattern as specified below will be used. # Tip: you can test your closing pattern at http://rubular.com # issue_closing_pattern: '([Cc]lose[sd]|[Ff]ixe[sd]) +#\d+' - <% if !@gitlab_issue_closing_pattern.nil? %> - issue_closing_pattern: '<%= @gitlab_issue_closing_pattern %>' - <% end %> + issue_closing_pattern: <%= single_quote(@gitlab_issue_closing_pattern) %> ## Default project features settings default_projects_features: -- libgit2 0.21.2