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

Use git command in non interactive mode #2660

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

gearnode
Copy link
Contributor

@gearnode gearnode commented Dec 20, 2021

Rebar3 uses git in interactive mode (the default mode), which can block the rebar3 process indefinitely when git asks for credentials.

Since git 1.3.0[1], the GIT_TERMINAL_PROMPT environment variable[2] was added to prevent git from asking anything and failed if the git command cannot succeed without more information.

[1] https://github.com/git/git/blob/master/Documentation/RelNotes/2.3.0.txt
[2] https://git-scm.com/docs/git#Documentation/git.txt-codeGITTERMINALPROMPTcode

@gearnode gearnode force-pushed the put-git-in-non-interactive-mode branch from 780ca48 to ed04e20 Compare December 20, 2021 16:14
@tsloughter
Copy link
Collaborator

Oh great! That has always been such a pain. Thanks for this.

@ferd ferd merged commit e3108ac into erlang:master Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants