[Xfce4-commits] <moka:master> Set denyNonFastforwards on all repos.

Nick Schermer noreply at xfce.org
Tue Nov 22 23:40:01 CET 2011


Updating branch refs/heads/master
         to c3cd8d0153d454121a88a3658e80549a51628604 (commit)
       from 0836a2458be83f7c1a950b64fafad40ee43cb6df (commit)

commit c3cd8d0153d454121a88a3658e80549a51628604
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Nov 22 23:38:22 2011 +0100

    Set denyNonFastforwards on all repos.

 lib/helpers/gitolite.rb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/helpers/gitolite.rb b/lib/helpers/gitolite.rb
index e100008..0387a2c 100644
--- a/lib/helpers/gitolite.rb
+++ b/lib/helpers/gitolite.rb
@@ -59,6 +59,9 @@ module Moka
           # let gitolite create git-daemon-export-ok
           conf << "\n\tR = daemon" if project.groups.include?(public)
 
+          # force fast-forward on all repositories
+          conf << "\n\tconfig receive.denyNonFastforwards = true"
+
           conf << "\n\n"
         end
       end


More information about the Xfce4-commits mailing list