aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/templates
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-24 16:57:57 +0000
committerMichael Scherer <misc@mageia.org>2011-01-24 16:57:57 +0000
commitfd3809b56cb2eb677c927eadf4b33f585b9631d0 (patch)
treecf1ff3a2fd2158659212a1de66c3467fbcedad62 /modules/git/templates
parentea1d6b3d009c2519b48b9cade78e3705d9f8cba2 (diff)
downloadpuppet-fd3809b56cb2eb677c927eadf4b33f585b9631d0.tar
puppet-fd3809b56cb2eb677c927eadf4b33f585b9631d0.tar.gz
puppet-fd3809b56cb2eb677c927eadf4b33f585b9631d0.tar.bz2
puppet-fd3809b56cb2eb677c927eadf4b33f585b9631d0.tar.xz
puppet-fd3809b56cb2eb677c927eadf4b33f585b9631d0.zip
- deny force-update remote branches to non-fast-forward references by
default
Diffstat (limited to 'modules/git/templates')
-rw-r--r--modules/git/templates/create_git_repo.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/git/templates/create_git_repo.sh b/modules/git/templates/create_git_repo.sh
index 69cfa6ff..1104edbe 100644
--- a/modules/git/templates/create_git_repo.sh
+++ b/modules/git/templates/create_git_repo.sh
@@ -7,3 +7,5 @@ cd $name
git --bare init --shared=group
chmod g+ws branches info objects refs
( cd objects; chmod g+ws * )
+git config receive.denyNonFastForwards true
+