Exclude chef repo from default receive hooks
authorTom Hughes <tom@compton.nu>
Mon, 10 Oct 2016 21:23:46 +0000 (22:23 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 10 Oct 2016 21:23:46 +0000 (22:23 +0100)
cookbooks/git/recipes/server.rb

index 822467d..c8077a3 100644 (file)
@@ -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"