Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

plugin repos are cloned with url = https://git::@github.com #109

Closed
justinmk opened this issue Oct 15, 2014 · 4 comments
Closed
Labels

Comments

@justinmk
Copy link
Contributor

When vim-plug installs a new plugin, .git/config looks like this:

[core]
...
[remote "origin"]
        url = https://git::@github.com/justinmk/vim-matchparenalways.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
...

The

url = https://git::@github.com/justinmk/...

fragment seems unusual. I would expect it to be

url = https://github.com/justinmk/...

With git::@github.com, I cannot git push changes. Replacing it with github.com allows me to push changes.

I'm assuming this is due to a git setting or one of vim-plugin's particular git invocations, but before investigating I thought I would ask if this happens for others. It happens for me on Windows/OS X/ubuntu.

@junegunn
Copy link
Owner

I know it looks a bit silly, but it's a little trick vim-plug does to deal with non-existent repositories.
See #56 for the details.

For your own plugins, I recommend using full git urls or overriding g:plug_url_format like I do here.

@junegunn
Copy link
Owner

I'll close the issue. Let me know if you happen to find a better way of avoiding username/password prompt without this hack.

@justinmk
Copy link
Contributor Author

Using full git urls worked, thank you. I left the issue open with the hope that the approach could be improved some day.

@junegunn
Copy link
Owner

There are people having the same problem, but no easy solution is known.

http://serverfault.com/questions/544156/git-clone-fail-instead-of-prompting-for-credentials
https://bugs.launchpad.net/solum/+bug/1375471

Prepending git::@ is a dirty hack, but it works and doesn't affect most of the users who don't write their own plugins.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants