This happens with GitPython 2.x. When string returned from Commands.new contains Unicode characters, this error occurs
GitPython 2.x
Commands.new
Could not execute new: 'ascii' codec can't encode character u'\xed' in position 2074: ordinal not in range(128)
Metadata Update from @cqi: - Issue set to the milestone: 1.50
Metadata Update from @cqi: - Issue assigned to cqi
fedpkg-1.28-1.fc25.noarch
Steps to replicate
docker run --rm -i -t fedora:25 /bin/bash dnf install -y fedpkg fedpkg clone -a rpkg cd rpkg fedpkg -d -v new Creating repo object from /root/rpkg Diffing from tag 1.47 Could not execute new: 'ascii' codec can't encode character u'\xed' in position 1497: ordinal not in range(128) Traceback (most recent call last): File "/usr/bin/fedpkg", line 16, in <module> main() File "/usr/lib/python2.7/site-packages/fedpkg/__main__.py", line 77, in main sys.exit(client.args.command()) File "/usr/lib/python2.7/site-packages/pyrpkg/cli.py", line 1271, in new print(self.cmd.new()) UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 1497: ordinal not in range(128)
Metadata Update from @cqi: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)