Skip to content

Remote URLs not alias-expanded #571

Closed as not planned
Closed as not planned

Description

@fooishbar

Add this to .gitconfig:

[url "https://github.com/"]
	insteadof = gh:

And then clone gh:foo/bar. Repo.remotes.urls will now contain gh:foo/bar, which is not a URL, rather than the proper expansion.

This currently breaks git-phab, which uses the repository URLs to find the matching repository on the remote server, but fails as nothing matches a non-alias-expanded repository.

Activity

  1. Byron commented on Jan 21, 2017

    @Byron
    Member

    Thanks for bringing this up!
    Implementing this should be relatively straightforward, in case you would be willing to contribute.
    (GitPython is in maintenance mode, and most features are contributed by now)

  2. added theissue type on Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions