[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Savannah-hackers-public] Re: prevent merge commits?
From: |
Sylvain Beucler |
Subject: |
Re: [Savannah-hackers-public] Re: prevent merge commits? |
Date: |
Sat, 8 Aug 2009 13:33:44 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi,
Notifying the list is fine, but documenting is better :)
Within 2 months this will be lost in oblivion^Warchives.
--
Sylvain
On Sat, Aug 08, 2009 at 09:15:26AM +0200, Jim Meyering wrote:
> Simon Josefsson wrote:
> > Jim Meyering <address@hidden> writes:
> >> Simon Josefsson wrote:
> >>> Hi Jim. I think you fixed so that it isn't possible to push merge
> >>> commits into gnulib, right? I'd like to do the same for my projects (in
> >>> particular gnutls) so I'm wondering if it is documented somewhere how to
> >>> do this, or if it requires special admin bits on the savannah server.
> >>
> >> It requires an update hook on the server.
> >
> > OK, that's what I thought.
> >
> >> Tell me their names and I'll do it today or tomorrow.
> >
> > Project names are:
> >
> > gnutls
> > libtasn1
> > libidn
> > gsasl
> > shishi
> > gss
> > libntlm
> > autobuild
> > git2cl
>
> Done, as follows:
>
> # simon_projs='
> gnutls
> libtasn1
> libidn
> gsasl
> shishi
> gss
> libntlm
> autobuild
> git2cl
> '
>
> # dir=/vservers/vcs-noshell/srv/git;for i in $(echo $simon_projs); do echo
> $i; h=$dir/$i.git/hooks; chattr -i $h && ln -sf --backup
> /usr/local/bin/git-update-hook $h; chattr +i $h; done
> gnutls
> libtasn1
> libidn
> gsasl
> shishi
> gss
> libntlm
> autobuild
> git2cl
>
> This is the switch that controls this:
>
> # hooks.denymerge.BRANCH_NAME
> # When this boolean is true, you may not push a merge commit to BRANCH_NAME.
> # By default, you may.
>
> Turned on for all "master" branches like this:
>
> # dir=/vservers/vcs-noshell/srv/git;for i in $(echo $simon_projs); do
> echo $i; git --git-dir=$dir/$i.git config hooks.denymerge.master true; done
>
> FYI, it prohibits pushing trailing blanks as well, via this setting:
>
> # hooks.allowbadwhitespace
> # This boolean sets whether you may push a commit that adds bad
> whitespace.
> # By default, you may not.
>
> Let me know if you'd prefer to toggle that for any of them.