Bug: get_maintainer: another bug: GitAuthor and Bad divisor in main::vcs_assign: 0
From: Askar Safin
Date: Wed Mar 04 2026 - 00:41:10 EST
Hi. I found a bug in get_maintainer.pl .
This bug is similar to previous one
( https://lore.kernel.org/lkml/20260222161826.2858606-1-safinaskar@xxxxxxxxx/ ),
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='safinaskar@xxxxxxxxx' git commit -a -m bar --author='Askar Safin <safinaskar@xxxxxxxxx>'
[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 <nathan@xxxxxxxxxx>, Nicolas Schier <nsc@xxxxxxxxxx>, "GitAuthor: Askar Safin" <safinaskar@xxxxxxxxx>, linux-kbuild@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
==== 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.
--
Askar Safin