All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: bad commit in the sunxi tree
@ 2016-10-24 22:22 Stephen Rothwell
  2016-10-25  9:44 ` Maxime Ripard
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2016-10-24 22:22 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: linux-next, linux-kernel

Hi Maxime,

In today's sunxi tree
(git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git#sunxi/for-next)
I noticed that commit

  3861b711f8b5 ("ARM: sun5i: chip: add a node for the w1 gpio controller")

has no Signed-off-by from its committer.

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: bad commit in the sunxi tree
  2016-10-24 22:22 linux-next: bad commit in the sunxi tree Stephen Rothwell
@ 2016-10-25  9:44 ` Maxime Ripard
  2016-10-26 23:42   ` Stephen Rothwell
  0 siblings, 1 reply; 6+ messages in thread
From: Maxime Ripard @ 2016-10-25  9:44 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

Hi Stephen,

On Tue, Oct 25, 2016 at 09:22:55AM +1100, Stephen Rothwell wrote:
> Hi Maxime,
> 
> In today's sunxi tree
> (git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git#sunxi/for-next)
> I noticed that commit
> 
>   3861b711f8b5 ("ARM: sun5i: chip: add a node for the w1 gpio controller")
> 
> has no Signed-off-by from its committer.

Thanks, this has been fixed.

Just out of curiosity, what command do you run to catch this?

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: bad commit in the sunxi tree
  2016-10-25  9:44 ` Maxime Ripard
@ 2016-10-26 23:42   ` Stephen Rothwell
  2016-10-27 20:41     ` Maxime Ripard
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2016-10-26 23:42 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: linux-next, linux-kernel

Hi Maxime,

On Tue, 25 Oct 2016 11:44:09 +0200 Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
>
> On Tue, Oct 25, 2016 at 09:22:55AM +1100, Stephen Rothwell wrote:
> > Hi Maxime,
> > 
> > In today's sunxi tree
> > (git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git#sunxi/for-next)
> > I noticed that commit
> > 
> >   3861b711f8b5 ("ARM: sun5i: chip: add a node for the w1 gpio controller")
> > 
> > has no Signed-off-by from its committer.  
> 
> Thanks, this has been fixed.
> 
> Just out of curiosity, what command do you run to catch this?

None :-)  I look at the differences in each tree as I fetch it and
just happen to notice some of these sometimes.  I should have a git
hook to check that there is a Signed-off-by for the author and
committer, but I would have to invest some time to figure out how :-)

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: bad commit in the sunxi tree
  2016-10-26 23:42   ` Stephen Rothwell
@ 2016-10-27 20:41     ` Maxime Ripard
  2016-10-31  2:59       ` Michael Ellerman
  0 siblings, 1 reply; 6+ messages in thread
From: Maxime Ripard @ 2016-10-27 20:41 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]

Hi Stephen,

On Thu, Oct 27, 2016 at 10:42:25AM +1100, Stephen Rothwell wrote:
> Hi Maxime,
> 
> On Tue, 25 Oct 2016 11:44:09 +0200 Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
> >
> > On Tue, Oct 25, 2016 at 09:22:55AM +1100, Stephen Rothwell wrote:
> > > Hi Maxime,
> > > 
> > > In today's sunxi tree
> > > (git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git#sunxi/for-next)
> > > I noticed that commit
> > > 
> > >   3861b711f8b5 ("ARM: sun5i: chip: add a node for the w1 gpio controller")
> > > 
> > > has no Signed-off-by from its committer.  
> > 
> > Thanks, this has been fixed.
> > 
> > Just out of curiosity, what command do you run to catch this?
> 
> None :-)  I look at the differences in each tree as I fetch it and
> just happen to notice some of these sometimes.  I should have a git
> hook to check that there is a Signed-off-by for the author and
> committer, but I would have to invest some time to figure out how :-)

Ok, that's actually the real question I had in mind, if you had a hook
I could use in order to avoid that kind of things in the future :)

I guess I have a new item on my todo list.

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: bad commit in the sunxi tree
  2016-10-27 20:41     ` Maxime Ripard
@ 2016-10-31  2:59       ` Michael Ellerman
  2016-10-31 14:57         ` Stephen Rothwell
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Ellerman @ 2016-10-31  2:59 UTC (permalink / raw)
  To: Maxime Ripard, Stephen Rothwell; +Cc: linux-next, linux-kernel

Maxime Ripard <maxime.ripard@free-electrons.com> writes:
> On Thu, Oct 27, 2016 at 10:42:25AM +1100, Stephen Rothwell wrote:
>> On Tue, 25 Oct 2016 11:44:09 +0200 Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
>> > On Tue, Oct 25, 2016 at 09:22:55AM +1100, Stephen Rothwell wrote:
>> > > In today's sunxi tree
>> > > (git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git#sunxi/for-next)
>> > > I noticed that commit
>> > > 
>> > >   3861b711f8b5 ("ARM: sun5i: chip: add a node for the w1 gpio controller")
>> > > 
>> > > has no Signed-off-by from its committer.  
>> > 
>> > Thanks, this has been fixed.
>> > 
>> > Just out of curiosity, what command do you run to catch this?
>> 
>> None :-)  I look at the differences in each tree as I fetch it and
>> just happen to notice some of these sometimes.  I should have a git
>> hook to check that there is a Signed-off-by for the author and
>> committer, but I would have to invest some time to figure out how :-)
>
> Ok, that's actually the real question I had in mind, if you had a hook
> I could use in order to avoid that kind of things in the future :)

I don't run a hook, but I have a separate script which does checks like
that. I've pulled out the Signed-off-by check into a script below, which
might work for you, or at least give you something to start from.

cheers


#!/bin/bash

function check_sob_by_committer
{
	local commit=$1

	git rev-parse --verify ${commit}^2 > /dev/null 2>&1
	if [[ $? -eq 0 ]]; then
		# It has at least 2 parents, ie. it's a merge
		# We don't sign off merges, so we're done
		return
	fi

	committer=$(git log -1 --format='%cn <%ce>' $commit)

	git log -1 --format=%b $commit | grep "Signed-off-by: $committer" > /dev/null
	if [[ $? -ne 0 ]]; then
		echo "  Not SOB committer '$committer'"
		return 1
	fi

	return 0
}

check_sob_by_committer $1
exit $?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: bad commit in the sunxi tree
  2016-10-31  2:59       ` Michael Ellerman
@ 2016-10-31 14:57         ` Stephen Rothwell
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Rothwell @ 2016-10-31 14:57 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: Maxime Ripard, linux-next, linux-kernel

Hi Michael,

On Mon, 31 Oct 2016 13:59:53 +1100 Michael Ellerman <mpe@ellerman.id.au> wrote:
>
> I don't run a hook, but I have a separate script which does checks like
> that. I've pulled out the Signed-off-by check into a script below, which
> might work for you, or at least give you something to start from.

Turns out that there is no hook that gets runa ta fetch time, so thanks
for this I will adapt this into my "fetch the trees" script.

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-31 14:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-24 22:22 linux-next: bad commit in the sunxi tree Stephen Rothwell
2016-10-25  9:44 ` Maxime Ripard
2016-10-26 23:42   ` Stephen Rothwell
2016-10-27 20:41     ` Maxime Ripard
2016-10-31  2:59       ` Michael Ellerman
2016-10-31 14:57         ` Stephen Rothwell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.