Skip to content
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

Improve .git-wrapper for the new GIT_TERMINAL_PROMPT var #1362

Open
leehambley opened this issue Feb 9, 2015 · 0 comments
Open

Improve .git-wrapper for the new GIT_TERMINAL_PROMPT var #1362

leehambley opened this issue Feb 9, 2015 · 0 comments

Comments

@leehambley
Copy link
Member

See https://github.com/blog/1957-git-2-3-has-been-released

The credential subsystem is now friendlier to scripting

When Git needs a password (e.g., to connect to a remote repository over http), it uses the credential subsystem to query any helpers (like the OS X Keychain helper), and then finally prompts the user on the terminal. When Git is run from an automated process like a cron job, there is usually no terminal available and Git will skip the prompt. However, if there is a terminal available, Git may hang forever, waiting for the user to type something. Scripts which do not expect user input can now set GIT_TERMINAL_PROMPT=0 in the environment to avoid this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants