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

Add warning for non-G4W on Windows #807

Merged
merged 2 commits into from
Oct 31, 2020
Merged

Add warning for non-G4W on Windows #807

merged 2 commits into from
Oct 31, 2020

Conversation

dahlbyk
Copy link
Owner

@dahlbyk dahlbyk commented Oct 28, 2020

#771 suggests we don't want folks using git from Cygwin. I think we can just check for .windows in git --version?

Set $Env:POSHGIT_CYGWIN_WARNING = 'false' to hide the warning.

image

$script:GitCygwin = $true

if (!$Env:POSHGIT_CYGWIN_WARNING) {
Write-Warning "posh-git recommends Git for Windows. You appear to have a different distribution."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we mention why we recommend Git for Windows? Maybe ... recommends Git for Windows for proper ANSI/VT support. .... or something like that.

Copy link
Owner Author

Choose a reason for hiding this comment

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

You appear to have an unsupported Git distribution; setting $GitPromptSettings.AnsiConsole = $false. posh-git recommends Git for Windows.

@dahlbyk dahlbyk merged commit 2f46a7c into master Oct 31, 2020
@dahlbyk dahlbyk deleted the cygwin-warning branch October 31, 2020 01:36
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.

2 participants