diff options
Diffstat (limited to 'modules/subversion/templates/no_root_commit')
-rw-r--r-- | modules/subversion/templates/no_root_commit | 12 |
1 files changed, 12 insertions, 0 deletions
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 + |