Skip to content

Asks for "Username for '://':" #322

Closed

Description

@HashBang173

When cloning over https, it asks for "Username for '://':" and "Password for '://':"

It asks this to download the large file(s)

Activity

  1. technoweenie commented on May 21, 2015

    @technoweenie
    Contributor

    What does git lfs env show?

    What's the actual url for the remote? git remote show origin -n (replace "origin" with your remote name).

  2. technoweenie commented on May 21, 2015

    @technoweenie
    Contributor

    What about just git remote? It looks like the git lfs env output mentions a "githubs" remote too.

    What are you typing to push? Just git push?

  3. HashBang173 commented on May 21, 2015

    @HashBang173
    Author

    I originally pushed the repository using git push after I tracked the large file with git lfs track "git lfs track libexec/gcc/aarch64-linux-gnu/5.1.x-sabermod/cc1plus". (My large file)

    Maybe I did this incorrectly? Cloning the repository with ssh also fails for me. It gives me this error log.

  4. technoweenie commented on May 21, 2015

    @technoweenie
    Contributor

    What is the exact SSH url that you're using? Also, you never answered my question about the mysterious "githubs" remote.

  5. HashBang173 commented on May 21, 2015

    @HashBang173
    Author

    githubs is another remote I tried to see if it would work better with git://

    The ssh URL I used to clone (to get that error log) was [email protected]:SMAICP/aarch64-5.1.git

  6. technoweenie commented on May 21, 2015

    @technoweenie
    Contributor

    So does it still fail if you run git push github master (replace "master" with the current branch)? My hunch is that Git LFS is confused about not having an "origin" remote. Or just "git push" is picking the remote with the git:// URL.

  7. HashBang173 commented on May 21, 2015

    @HashBang173
    Author

    I did a git push via ssh. I pushed it with git push -u origin master.
    The origin remote was [email protected]:SMAICP/aarch64-5.1.git

  8. technoweenie commented on May 21, 2015

    @technoweenie
    Contributor

    So you do have an origin remote? I wonder why it doesn't show up in your git lfs env output? Here's an example from one of my repositories:

    $ git remote
    gh-enterprise
    origin
    
    $ git remote show origin -n
    * remote origin
      Fetch URL: [email protected]:github/git-lfs-test.git
      Push  URL: [email protected]:github/git-lfs-test.git
    ...
    
    $ git remote show gh-enterprise -n   
    * remote gh-enterprise
      Fetch URL: https://some-enterprise-server/technoweenie/git-lfs-test
      Push  URL: https://some-enterprise-server/technoweenie/git-lfs-test
    
    $ git lfs env           
    Endpoint=https://github.com/github/git-lfs-test.git/info/lfs
      [email protected]:github/git-lfs-test.git
    Endpoint (gh-enterprise)=https://some-enterprise-server/technoweenie/git-lfs-test.git/info/lfs
    

    I'm not really sure why I'm not seeing an "Endpoint=" line in your git lfs output. This is what it looks like if I try to use your SSH remote url:

    $ git remote add origin [email protected]:SMAICP/aarch64-5.1.git
    $ git remote rm origin                                       
    $ git lfs env
    Endpoint=https://github.com/SMAICP/aarch64-5.1.git/info/lfs
      [email protected]:SMAICP/aarch64-5.1.git
    

    What does git lfs version say?

  9. HashBang173 commented on May 21, 2015

    @HashBang173
    Author

    I have git lts 0.5.1

  10. technoweenie commented on May 21, 2015

    @technoweenie
    Contributor

    Can you post your .git/config file so I can try to reproduce this? Feel free to send it to [email protected] if you don't want it public.

  11. HashBang173 commented on May 21, 2015

    @HashBang173
    Author

    started the process over and now it seems to be working for ssh...

  12. technoweenie commented on May 22, 2015

    @technoweenie
    Contributor
    • What command are you using to push to HTTPS?
    • What does git lfs env show?
    • Do you have any lfs config values set? git config -l | grep lfs
  13. HashBang173 commented on May 22, 2015

    @HashBang173
    Author

    I am not pushing via https. I am pushing over ssh, but when I clone via https it failes to download the large file.

    This command doesn't seem work properly with lfs: git clone https://github.com/SMAICP/aarch64-5.1.git

  14. technoweenie commented on May 22, 2015

    @technoweenie
    Contributor

    Worked fine for me on git-lfs/0.5.1 (GitHub; darwin amd64; git 2.3.0; go 1.3):

    https://gist.githubusercontent.com/technoweenie/95f1bc1b0d29a1685404/raw/f08b01608ea3662ef89cf91d7cd3392cf73e54fe/whatever.log

    Your error suggests that it's not making the correct Git LFS endpoint from the remote. Git LFS takes HTTPS remote urls and converts them to a Git LFS endpoint:

    $ git remote
    origin
    
    $ git remote show origin -n
    * remote origin
      Fetch URL: https://github.com/SMAICP/aarch64-5.1.git
      Push  URL: https://github.com/SMAICP/aarch64-5.1.git
    
    $ git lfs env
    Endpoint=https://github.com/SMAICP/aarch64-5.1.git/info/lfs
    LocalWorkingDir=/Users/rick/p/aarch64-5.1
    LocalGitDir=/Users/rick/p/aarch64-5.1/.git
    LocalMediaDir=/Users/rick/p/aarch64-5.1/.git/lfs/objects
    TempDir=/Users/rick/p/aarch64-5.1/.git/lfs/tmp
    

    If you're not seeing that, then there's some other configuration setting in use that I don't know about.

    EDIT: To be clear, this is the part of your error log I'm talking about:

    Error downloading /home/joshua/android/saber/aicp/prebuilts/gcc/linux-x86/aarch64/aarch64-5.1/.git/lfs/objects/8d/b2/8db27dabae2a8b2682fdb33cf540080b15e80b15a3a6de722ba855671b53cf98.
    Get objects/8db27dabae2a8b2682fdb33cf540080b15e80b15a3a6de722ba855671b53cf98: unsupported protocol scheme ""
    

    "unsupported protocol scheme" means that the Git LFS endpoint is not "https".

  15. technoweenie commented on May 24, 2015

    @technoweenie
    Contributor

    Did you get this resolved? I'm curious what the problem was.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions