]> git.openstreetmap.org Git - chef.git/commitdiff
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 822467d08c59cc5030e6fe0dd86a0abef020425d..c8077a3032b8356ebd0f2cac837324d041b7da67 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"