From a633966827f68bf3d87a76a7902077699d0e1bed Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 19 Nov 2010 00:24:16 +0000 Subject: - add the generic hook --- modules/subversion/templates/hook_commit.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/subversion/templates/hook_commit.sh (limited to 'modules/subversion/templates/hook_commit.sh') diff --git a/modules/subversion/templates/hook_commit.sh b/modules/subversion/templates/hook_commit.sh new file mode 100644 index 00000000..0fdfc3e5 --- /dev/null +++ b/modules/subversion/templates/hook_commit.sh @@ -0,0 +1,13 @@ +#!/bin/sh +for script in $0.d/*; do + if [ ! -x "$script" ]; then + continue + fi + + if [[ "$script" == *~ ]]; then + continue + fi + + $script $@ || exit 1 +done + -- cgit v1.2.1