Giter Site home page Giter Site logo

Comments (7)

junegunn avatar junegunn commented on August 19, 2024

Hi, thanks for pointing out the issue.

The git: prefix was introduced to workaround the problem where git asks for username when the repository doesn't exist, for example

> git clone https://github.com/tpope/vim-tpope.git
Cloning into 'vim-tpope'...
Username for 'https://github.com':

> git clone https://git:@github.com/tpope/vim-tpope.git
Cloning into 'vim-tpope'...
error: Could not resolve host: github.com while accessing https://git:@github.com/tpope/vim-tpope.git/info/refs?service=git-upload-pack
fatal: HTTP request failed

Hmm, maybe we could change the prefix to something like git:git. I currently don't have git 1.7.7 installed, could you check if git clone https://git:[email protected]/tpope/vim-tpope.git doesn't ask for anything?

from vim-plug.

matze avatar matze commented on August 19, 2024

That seems to work:

$ git clone https://git:[email protected]/tpope/vim-tpope.git
Cloning into vim-tpope...
error: The requested URL returned error: 403 while accessing https://git:[email protected]/tpope/vim-tpope.git/info/refs

fatal: HTTP request failed

$ git clone https://git:@github.com/tpope/vim-tpope.git
Cloning into vim-tpope...
Password: ^C

from vim-plug.

junegunn avatar junegunn commented on August 19, 2024

Thanks, how about git clone https://git::@github.com/tpope/vim-tpope.git? Does this work as well? (looks less silly than git:git I think)

If it works, we can easily fix this issue by putting a dummy password after :. But before doing that, I'd like to investigate if there's a better way of handling this.

from vim-plug.

junegunn avatar junegunn commented on August 19, 2024

Okay, I downloaded git 1.7.8 and checked git:: also works.

from vim-plug.

matze avatar matze commented on August 19, 2024

Same for 1.7.7.

from vim-plug.

junegunn avatar junegunn commented on August 19, 2024

I decided to change the prefix to git::. The change is backward-compatible.
Could you update and check if it resolves the problem?

from vim-plug.

matze avatar matze commented on August 19, 2024

It resolved the issue, thank you very much.

from vim-plug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.