From cf875dbc23ee225629984aace574d11c512c9bbe Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 10 Oct 2016 22:23:46 +0100 Subject: [PATCH] Exclude chef repo from default receive hooks --- cookbooks/git/recipes/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/git/recipes/server.rb b/cookbooks/git/recipes/server.rb index 822467d08..c8077a303 100644 --- a/cookbooks/git/recipes/server.rb +++ b/cookbooks/git/recipes/server.rb @@ -61,7 +61,7 @@ Dir.new(git_directory).select { |name| name =~ /\.git$/ }.each do |repository| mode 0o755 end - next unless node[:recipes].include?("trac") && repository != "dns.git" + next unless node[:recipes].include?("trac") && repository != "dns.git" && repository != "chef.git" template "#{git_directory}/#{repository}/hooks/post-receive" do source "post-receive.erb" -- 2.39.5