Skip to contentSkip to conversation

Bug: get_maintainer: another bug: GitAuthor and Bad divisor in main::vcs_assign: 0

DISCUSSION Askar Safin 2 participants 3 messages Mar 4

lore
Share & tools
lore
#0 lore raw

Hi. I found a bug in get_maintainer.pl .

This bug is similar to previous one
( https://lore.kernel.org/lkml/[email protected]/ ), but, in my opinion, is distinct.

Steps to reproduce:

==== begin ====

Perform full clone of git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git , then:

d-user@comp:/tmp/LINUX2$ cd linux
d-user@comp:/tmp/LINUX2/linux$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

d-user@comp:/tmp/LINUX2/linux$ git branch foo
d-user@comp:/tmp/LINUX2/linux$ git switch foo
Switched to branch 'foo'
d-user@comp:/tmp/LINUX2/linux$ echo a >> usr/default_cpio_list
d-user@comp:/tmp/LINUX2/linux$ GIT_COMMITTER_EMAIL='[email protected]' git commit -a -m bar --author='Askar Safin <[email protected]>'
[foo 88140488e43c] bar
 1 file changed, 1 insertion(+)
d-user@comp:/tmp/LINUX2/linux$ scripts/get_maintainer.pl --no-rolestats --no-multiline -f usr/default_cpio_list
Bad divisor in main::vcs_assign: 0
Nathan Chancellor <[email protected]>, Nicolas Schier <[email protected]>, "GitAuthor: Askar Safin" <[email protected]>, [email protected], [email protected]

==== end ====

I see two problems here. First, I see message "Bad divisor in main::vcs_assign: 0". Note that this time this is full clone of Linux.

Second, I see this weird "GitAuthor" string. I don't like this. I intentionally pass "--no-rolestats --no-multiline" to make sure that I can copy-paste output to "To" field of a mail. But this "GitAuthor" means that I should manually edit the output. This prevents automation.

Signature · 1 line
Askar Safin
#1 lore raw
Quoted 6 lines · Askar Safin

```
Hi. I found a bug in get_maintainer.pl .

This bug is similar to previous one
( [https://lore.kernel.org/lkml/[email protected]/](https://lore.kernel.org/lkml/[email protected]/) ), but, in my opinion, is distinct.

[]

Quoted 3 lines
d-user@comp:/tmp/LINUX2/linux$ scripts/get_maintainer.pl --no-rolestats --no-multiline -f usr/default_cpio_list
Bad divisor in main::vcs_assign: 0
Nathan Chancellor <[[email protected]](mailto:[email protected])>, Nicolas Schier <[[email protected]](mailto:[email protected])>, "GitAuthor: Askar Safin" <[[email protected]](mailto:[email protected])>, [[email protected]](mailto:[email protected]), [[email protected]](mailto:[email protected])

Your commit does not have a Signed-off-by: line
so it defaults to the gitauthor.

#2 lore raw

Joe Perches <[email protected]>:

Quoted 2 lines

Your commit does not have a Signed-off-by: line
so it defaults to the gitauthor.

Yes, adding Signed-Off-by indeed removed both "Bad divisor" and "GitAuthor". Thank you!

But I still don't like this. I usually don't add Signed-Off-by when doing local development. I add it when sending using "git format-patch --signoff".

Also, I still believe message "Bad divisor in main::vcs_assign: 0" is too cryptic. Please, replace it with something else.

Signature · 1 line
Askar Safin