From 21785e5487d97f6ea61cdfc8ea91c2cce682c1df Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 19 Nov 2010 00:46:14 +0000 Subject: add check for root and empty commit --- modules/subversion/templates/no_root_commit | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/subversion/templates/no_root_commit (limited to 'modules/subversion/templates/no_root_commit') diff --git a/modules/subversion/templates/no_root_commit b/modules/subversion/templates/no_root_commit new file mode 100644 index 00000000..5dab449f --- /dev/null +++ b/modules/subversion/templates/no_root_commit @@ -0,0 +1,12 @@ +#!/bin/sh + +REP="$1" +TXN="$2" + +author=$(svnlook author -t "$TXN" "$REP") + +if [ "$author" == 'root' ]; then + echo "no root commit allowed" >&2 + exit 1 +fi + -- cgit v1.2.1