aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/manifests/repository.pp
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-08-18 17:52:58 +0000
committerColin Guthrie <colin@mageia.org>2013-08-18 17:52:58 +0000
commit0f533467f2b813cacebcb420852b2d8045709482 (patch)
treeea4778a40db4302b79ba5c50dac81393fe1ae8cc /modules/subversion/manifests/repository.pp
parent694ea4adcd771974d0e79e05f79a37f1f3d2a2ba (diff)
downloadpuppet-0f533467f2b813cacebcb420852b2d8045709482.tar
puppet-0f533467f2b813cacebcb420852b2d8045709482.tar.gz
puppet-0f533467f2b813cacebcb420852b2d8045709482.tar.bz2
puppet-0f533467f2b813cacebcb420852b2d8045709482.tar.xz
puppet-0f533467f2b813cacebcb420852b2d8045709482.zip
subversion: Add a new pre-commit hook that will prevent commits to paths which have been converted to git
Diffstat (limited to 'modules/subversion/manifests/repository.pp')
-rw-r--r--modules/subversion/manifests/repository.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/subversion/manifests/repository.pp b/modules/subversion/manifests/repository.pp
index 60846339..92d2e43c 100644
--- a/modules/subversion/manifests/repository.pp
+++ b/modules/subversion/manifests/repository.pp
@@ -123,6 +123,8 @@ define subversion::repository($group = 'svn',
pre_commit_link { "$name/hooks/pre-commit.d/no_root_commit": }
+ pre_commit_link { "$name/hooks/pre-commit.d/converted_to_git": }
+
if $syntax_check {
$syntax_check_array = regsubst($syntax_check,'^',"$name/hooks/pre-commit.d/")
pre_commit_link { $syntax_check_array: }