-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GIT_TERMINAL_PROMPT=0
git 2.3 feature
#161
Comments
Thanks for the info! I wish this was available in the older versions of git. 😞 |
Hi @junegunn, About the I don't think these 2 things interfere though. In fact, it might be good to have both of them present for the case when a user wants to install git plugin from a host other than github. Example url: The above example is, of course theoretical because why would anyone want to use anything except github lol. |
Thanks. You're absolutely right. One concern I have about it is as I mentioned previously, how we can put it on windows. I currently don't have a Windows development environment and have no sufficient knowledge on Windows CLI, so I'm not sure how we should do it there. And @starcraftman is working on Python version of the installer, so I'd like to wait until it's stable and merged. |
Agreed. |
I just noticed that when you have:
or:
You get the rather confusing error:
I wanted to report an issue for this, but maybe this is fixed with this new git feature? (Odiously no one would type this, but I made a silly typo, and was a bit confused for a minute) |
@bruno- Please note, @junegunn Sorry for the delay on my fork. I've been a bit busy the last week. Tests are now passing. The only major issue is getting line-by-line buffer updating you do in ruby on linux. Subprocess module doesn't allow easy intercept as with PlugStream & IO.popen. Annoyingly, only solution might involve even more threads? Will investigate. |
@Carpetsmoker Yes, it's a known problem and we haven't managed to find a better way to handle non-existing repository. vim-plug injects @starcraftman No problem. Take your time. I'm following your repository and saw the issue which is a bit disappointing. I've wanted to help but been busy with other stuff and I don't have enough experience with Python. I'll look into it when I get some time. |
Closing with #168. |
Hi,
thank you for making and maintaining this great plugin.
A couple days ago new git version
2.3
was released. Among new features is alsoGIT_TERMINAL_PROMPT
environment variable. When it is set to0
git will never prompt for user credentials.You can learn more about it in
man git
(after updating to git 2.3) or in this blog post on github.Just as an example, here's how it works:
git clone https://github.com/some/non-existing-repo
- will prompt for a username & passwordGIT_TERMINAL_PROMPT=0 git clone https://github.com/some/non-existing-repo
- will fail without prompting for username & passwordGIT_TERMINAL_PROMPT=0 git submodule add https://github.com/chaconinc/DbConnector
- also fails withot prompting for username & passI think this addition could potentially be valuable to
vim-plug
in the following places:git clone
git submodule update
git fetch
(just in case a user manually changed git remote)I was thinking of opening a pull request that prepends git commands with
export GIT_TERMINAL_PROMPT=0
. Example line 926:I did something similar for tmux plugin manager.
Related issues are #109, #56.
What do you think about this?
The text was updated successfully, but these errors were encountered: