glibc.git: hook to prohibit pushing "bad-merge" commits

Jim Meyering jim@meyering.net
Tue Nov 30 13:55:00 GMT 2010


Andreas Schwab wrote:
> Petr Baudis <pasky@suse.cz> writes:
>
>> I added .gitattributes entry INSTALL -whitespace in the same commit,
>
> You'll probably need to push that separately.

Hi Andreas,

Unfortunately, even if you commit and push the .gitattributes change
first, the hook still prohibits the subsequent push.  As Pasky guessed,
the .gitattributes file is not honored when "git diff" is run in the
context of the bare server-side repository.

That is why I ended up adding the hook infrastructure that allows
running designated commands on the server, e.g., to toggle the
allowbadwhitespace configure flag.



More information about the Libc-alpha mailing list