summaryrefslogtreecommitdiff
path: root/gitano-admin/rules/trove-project.lace
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2013-05-17 15:27:14 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2013-05-17 15:27:14 +0100
commit4f6fbbb22d6f769694250b904985c6196067d7de (patch)
treed0498fbc392dd0a5b953b2e53e11f541bec9e014 /gitano-admin/rules/trove-project.lace
parenta2c5cf39071b52b78dc50879f941f25470c32337 (diff)
downloadtrove-setup-4f6fbbb22d6f769694250b904985c6196067d7de.tar.gz
Add rules to deny forced updates to refs which are not under
TROVE_ID/${user}/... This reduces the chances of accidental force-pushes to branches if you are using an old version of git or have misconfigured it. Reviewed-By: Richard Maw <richard.maw@codethink.co.uk>
Diffstat (limited to 'gitano-admin/rules/trove-project.lace')
-rw-r--r--gitano-admin/rules/trove-project.lace3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitano-admin/rules/trove-project.lace b/gitano-admin/rules/trove-project.lace
index 5ba9e37..383ba98 100644
--- a/gitano-admin/rules/trove-project.lace
+++ b/gitano-admin/rules/trove-project.lace
@@ -4,7 +4,7 @@
# | || | | (_) \ V / __/
# |_||_| \___/ \_/ \___|
#
-# Copyright 2012 Codethink Limited
+# Copyright 2012,2013 Codethink Limited
#
# Rules for ##PREFIX##/... repositories
@@ -17,6 +17,7 @@ allow "Project writers may write" op_write project_writer
deny "This repository is not for you" op_write
# Ref based rules for the repo
+deny "Non-personal branches may not be rewound/rebased" op_forcedupdate !ref_is_personal
## Master
allow "Master may be created" op_createref master_ref