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

Show GitHub terminal prompts when no GUI session #538

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

mjcheetham
Copy link
Collaborator

Show the terminal/TTY based prompts when there is no desktop/GUI sessions present for GitHub.

Currently the Bitbucket and Microsoft auth stacks correctly detect the lack of a desktop session and use terminal prompts - GitHub does not.

Without this change, SSH-ing in to a machine we'd still try and show a UI prompt where there is no way to interact with it!

Fixes #453

Show the terminal/TTY based prompts when there is no desktop/GUI
sessions present for GitHub.

Currently the Bitbucket and Microsoft auth stacks correctly detect the
lack of a desktop session and use terminal prompts - GitHub does not.

Without this change, SSH-ing in to a machine we'd still try and show a
UI prompt where there is no way to interact with it!
@mjcheetham mjcheetham marked this pull request as ready for review November 18, 2021 11:43
Copy link
Contributor

@ldennington ldennington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix!

@mjcheetham mjcheetham merged commit 898b6d1 into git-ecosystem:main Nov 18, 2021
@mjcheetham mjcheetham deleted the github-tty branch November 18, 2021 17:01
@ldennington ldennington mentioned this pull request Dec 10, 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.

Allow terminal-based prompting on Windows over SSH and headless Linux
4 participants