From 303250bf00346c5e509c1eb5d655e21cb4bd4cb5 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 31 Dec 2012 11:35:38 +0100 Subject: [PATCH] --- custom-post-receive.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 custom-post-receive.sh diff --git a/custom-post-receive.sh b/custom-post-receive.sh new file mode 100644 index 0000000..d41a2b4 --- /dev/null +++ b/custom-post-receive.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# run all post-receive.* hooks in custom-hooks/ + +if [ ! -d custom-hooks ]; then + exit +fi + +FILE="`mktemp`" +cat - > "$FILE" +for i in custom-hooks/post-receive.*; do + [ -x "$i" ] && cat "$FILE" | "$i" +done +rm "$FILE" -- 2.30.2