Skip to content

Username detection fails with a trailing slash #109

Description

@AA-Turner

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions