From 6a141fa262581ffd8329f5d1b7d147c5726a3987 Mon Sep 17 00:00:00 2001
From: Stephen Haberman <stephen@exigencecorp.com>
Date: Tue, 21 Oct 2008 16:30:42 -0500
Subject: [PATCH] Add hooks.post-receive-hudson.ignored to skip making Hudson
 projects.

---
 server/post-receive-hudson | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/server/post-receive-hudson b/server/post-receive-hudson
index 161568b..9219878 100644
--- a/server/post-receive-hudson
+++ b/server/post-receive-hudson
@@ -16,6 +16,11 @@ while read oldrev newrev refname ; do
 			;;
 	esac
 
+	ignored=" $(git config hooks.post-receive-hudson.ignored) "
+	if [[ $ignored =~ " $short_refname " ]] ; then
+		exit 0
+	fi
+
 	branch_config=$(wget -O - http://cbas1:8080/hudson/job/${short_refname}/config.xml 2>/dev/null)
 	if [ $? -ne 0 ] ; then
 		# Create the job
-- 
2.39.5