From: Tom Hughes Date: Mon, 10 Oct 2016 21:23:46 +0000 (+0100) Subject: Exclude chef repo from default receive hooks X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/cf875dbc23ee225629984aace574d11c512c9bbe?ds=sidebyside Exclude chef repo from default receive hooks --- 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"