[libvirt] [PATCH hooks 1/1] Add check for Signed-off-by in commit messages

Peter Krempa pkrempa at redhat.com
Mon Jan 22 13:20:52 UTC 2018


On Mon, Jan 22, 2018 at 13:06:28 +0000, Daniel Berrange wrote:
> On Mon, Jan 22, 2018 at 01:20:12PM +0100, Peter Krempa wrote:
> > On Mon, Jan 22, 2018 at 12:05:19 +0000, Daniel Berrange wrote:
> > > This extends the update hook so that it enforces a requirement to have a
> > > Signed-off-by line in every commit message. This can be optionally
> > > turned off in individual repos by setting the "hooks.allowmissingsob"
> > > git config variable.
> > > 
> > > Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> > > ---
> > >  update | 16 +++++++++++++++-
> > >  1 file changed, 15 insertions(+), 1 deletion(-)
> > 
> > NACK, I don't like signoffs and I don't really think they achieve
> > anything.
> 
> A signoff with no documented meaning attached by the project is fairly
> weak, as you would have to argue there was some commonly accepted signifance
> to it across the community. A signoff which is explicitly associated with a
> statement of intent has benefit, hence why I also sent a patch to clarify
> that the signoff asserts compliance with the DCO. Adding these signoffs has

You can do the same by declaring that all patches have to comply to that
and not mandating adding a line which will become eventually pointless
since every patch will need to have it.

Also since there's no way to check that it's actually true, anybody can
declare anything. Also the check itself can be fooled easily, so I think
it's pointless altogether.

> little to no time burden on long term developers own work on a daily basis.
> Just needs adding -s to "git commit" which quickly becomes engrained in
> muscle memory such that you'll end up doing it for every project you find

Or you can defeat it entirely by adding it into your commit message
template. I don't care about the added burden though. I don't really
think it achieves anything.

> yourself contributing to. Many of our "drive by" contributors already do
> this as habit, we'll just need to remind those that forget periodically.

I presonally signed-off < 5 commits in libvirt. So the last statement
is untrue. Some people don't do it on purpose.

The sign-off by itself (whithout cryptographic signature) is just
pointless. Validity with a cryptographic signature from drive-by
contributors can still be unproven, but at least you don't get
impersonation.

If everything is signed off, nothing really is.

NACK still stands.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180122/92fb82e2/attachment-0001.sig>


More information about the libvir-list mailing list