Skip to content

Git LFS is unaware of url configurations #864

Open

Description

@dentuzhik

So basically if you will do in your .gitconfig:

[url "[email protected]:"]
    insteadOf = "gh:"
    pushInsteadOf = "github:"
    pushInsteadOf = "git://github.com/"
    pushInsteadOf = "https://github.com/"

And then clone the repo using git clone gh:username/reponame, which uses git lfs, and then do git lfs pull, it wil fail with:

Post gh:username/reponame.git/info/lfs: unsupported protocol scheme "gh"

Activity

  1. technoweenie commented on Nov 25, 2015

    @technoweenie
    Contributor

    Thanks for the report.

  2. andre487 commented on Nov 27, 2015

    @andre487

    I have the same issue

  3. QuLogic commented on Feb 12, 2017

    @QuLogic
    Contributor

    Is this not fixed by #1443?

  4. technoweenie commented on Feb 13, 2017

    @technoweenie
    Contributor

    Ah, it doesn't implement pushinsteadof. But insteadof should work as of v1.4.0. If not, please let us know what specific case didn't work.

  5. eddsteel commented on Jun 2, 2017

    @eddsteel

    I had this problem with two insteadOf lines in the same stanza. Changing one to pushInsteadOf fixed it.

    But man git-config says insteadOf "allows people to specify any of the equivalent URLs", plural. Doesn't break anything for me but seems incorrect.

  6. wjwwood commented on May 1, 2018

    @wjwwood

    I have the same issue, multiple insteadOf prevents me from being able to push with git-lfs without it prompting (incorrectly) for an https password.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions