You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
posh-git version/path: 0.7.1from the PowerShell Gallery.
PowerShell version: 5.1.14393.1198
Git version: 2.7.1.windows.2
Operating system name and version:
Edition: Windows 10 Enterprise
Version: 1607
Build: 14393.1198
Issue Description
Write-Prompt checks to see if the $ForegroundColor parameter is empty by performing the check !$ForegroundColor. This works in all cases except when $ForegroundColor is [ConsoleColor]::Black, since Black evaluates to 0 and !0 == True.
I see that this was fixed by #454 on GitHub (the condition is now ($null -eq $ForegroundColor)) but the copy I obtained from PSGallery via Install-Module earlier today does not have this fix.
The text was updated successfully, but these errors were encountered:
System Details
0.7.1
from the PowerShell Gallery.5.1.14393.1198
2.7.1.windows.2
Windows 10 Enterprise
1607
14393.1198
Issue Description
Write-Prompt
checks to see if the$ForegroundColor
parameter is empty by performing the check!$ForegroundColor
. This works in all cases except when$ForegroundColor
is[ConsoleColor]::Black
, sinceBlack
evaluates to0
and!0 == True
.The offending line is posh-git/src/GitPrompt.ps1:135:
I see that this was fixed by #454 on GitHub (the condition is now
($null -eq $ForegroundColor)
) but the copy I obtained from PSGallery viaInstall-Module
earlier today does not have this fix.The text was updated successfully, but these errors were encountered: