linux-next: bad commit in the sunxi tree
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.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 9 lines · Stephen Rothwell
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
Signature · 3 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Hi Maxime,
Quoted 8 lines · On Tue, 25 Oct 2016 11:44:09 +0200 Maxime Ripard…
Quoted 6 lines · Stephen Rothwell
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
Quoted 7 lines
Quoted 3 lines
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 :-)
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 15 lines · Stephen Rothwell
Hi Maxime,
Quoted 12 lines · On Tue, 25 Oct 2016 11:44:09 +0200 Maxime Ripard…
Quoted 9 lines · Stephen Rothwell
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.
Quoted 8 lines
Quoted 3 lines
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
Signature · 3 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Quoted 15 lines · Maxime Ripard
Quoted 14 lines · Stephen Rothwell
Quoted 12 lines · On Tue, 25 Oct 2016 11:44:09 +0200 Maxime Ripard…
Quoted 7 lines · Stephen Rothwell
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?
Quoted 7 lines
Quoted 4 lines
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 $?
Hi Michael,
Quoted 4 lines · On Mon, 31 Oct 2016 13:59:53 +1100 Michael Ellerman <[email protected]> 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.
Signature · 2 lines
Cheers, Stephen Rothwell