X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4d52bd4c0f8e6ae7679145846b7bc7845d8ace..ecb5d5beac1e41d30e47daa6a034c59b33027d12:/cookbooks/git/recipes/server.rb diff --git a/cookbooks/git/recipes/server.rb b/cookbooks/git/recipes/server.rb index 7361624c4..52d6304b0 100644 --- a/cookbooks/git/recipes/server.rb +++ b/cookbooks/git/recipes/server.rb @@ -61,14 +61,14 @@ Dir.new(git_directory).select { |name| name =~ /\.git$/ }.each do |repository| mode 0755 end - if node[:recipes].include?("trace") && repository != "dns.git" - template "#{git_directory}/#{repository}/hooks/post-receive" do - source "post-receive.erb" - owner "root" - group node[:git][:group] - mode 0755 - variables :repository => "#{git_directory}/#{repository}" - end + next unless node[:recipes].include?("trac") && repository != "dns.git" + + template "#{git_directory}/#{repository}/hooks/post-receive" do + source "post-receive.erb" + owner "root" + group node[:git][:group] + mode 0755 + variables :repository => "#{git_directory}/#{repository}" end end