I have my remote origin set to https://github.com/AA-Turner/cpython/.
PS> git remote -v
origin https://github.com/AA-Turner/cpython/ (fetch)
origin https://github.com/AA-Turner/cpython/ (push)
upstream https://github.com/python/cpython/ (fetch)
upstream https://github.com/python/cpython/ (push)
cherry_picker runs git config --get remote.origin.url, which returns the above url, and then runs username = result.replace(":", "/").split("/")[-2]. This returns cpython, which means that I have to manually edit the URL on every backport.
cherry_picker should instead trim any trailing slash.
A
I have my remote origin set to
https://github.com/AA-Turner/cpython/.cherry_pickerrunsgit config --get remote.origin.url, which returns the above url, and then runsusername = result.replace(":", "/").split("/")[-2]. This returnscpython, which means that I have to manually edit the URL on every backport.cherry_pickershould instead trim any trailing slash.A