Skip to content

refactor: disable prompts when shelling out to git - #16193

Open
RoloEdits wants to merge 1 commit into
helix-editor:masterfrom
RoloEdits:git-prompt
Open

refactor: disable prompts when shelling out to git#16193
RoloEdits wants to merge 1 commit into
helix-editor:masterfrom
RoloEdits:git-prompt

Conversation

@RoloEdits

Copy link
Copy Markdown
Contributor

There are situations (like a private repo) that would have the git cli prompt for credentials. This is bad for us, as it would hang until a timeout, so we want to disable this behavior and error out instead.

Git provides an environment variable GIT_TERMINAL_PROMPT, which does exactly this:

If this Boolean environment variable is set to false, git will not prompt on the terminal (e.g., when asking for HTTP authentication).

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.

1 participant