patchew-project/patchew

patchew-cli apply: TypeError: expected str, bytes or os.PathLike object, not NoneType

Closed this issue · 1 comments

patchew-cli fails when trying to apply patches to my local branch:

[qemu/python-next=]$ patchew-cli apply 'id:20200228071914.11746-1-vsementsov@virtuozzo.com'
Traceback (most recent call last):
  File "/home/ehabkost/bin/patchew-cli", line 960, in do
    signoff=args.signoff,
  File "/home/ehabkost/bin/patchew-cli", line 782, in _apply
    maintainers = maintainers.union(self._get_maintainers(repo, patchf.name))
  File "/home/ehabkost/bin/patchew-cli", line 737, in _get_maintainers
    script = os.path.join(repo, "scripts/get_maintainer.pl")
  File "/usr/lib64/python3.7/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Bisected to commit efe3210, which is the commit that introduced _get_maintainers() in the first place.

patchew-cli version: latest git (5963bd3).
QEMU tree where I'm running patchew-cli: qemu.git commit e0175b7163.

famz commented

Hi Eduado,

This should fix it:

0efea5d

Thank for the reporting!

Fam