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
With the latest update of the PowerShell extension, piping data to git.exe STDIN fails from the PowerShell Integrated Console configured to use Windows PowerShell (version 5.1.19041.1682). For example:
"protocol=https`nhost=myhost.com`nusername=john`npassword=doe`n`n" | git.exe credential approve
fatal: refusing to work with credential missing protocol field
"protocol=https`nhost=myhost.com`n`n" | git.exe credential fill
fatal: refusing to work with credential missing protocol field
The same commands were working as expected from the PowerShell Integrated Console of extension version 2021.12.0, from a regular Windows PowerShell terminal or from the PowerShell Integrated Console of extension version 2022.5.1 configured to use PowerShell 7.2 rather than Windows Powershell.
Thanks, we were able to repro this. @SeeminglyScience tracked down that running [Console]::InputEncoding = [System.Text.UTF8Encoding]::new() "fixes" it, we'll work on a fix into PSES itself.
Prerequisites
Summary
With the latest update of the PowerShell extension, piping data to git.exe STDIN fails from the
PowerShell Integrated Console
configured to use Windows PowerShell (version 5.1.19041.1682). For example:The same commands were working as expected from the
PowerShell Integrated Console
of extension version 2021.12.0, from a regular Windows PowerShell terminal or from thePowerShell Integrated Console
of extension version 2022.5.1 configured to use PowerShell 7.2 rather than Windows Powershell.PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2022.5.1
Steps to Reproduce
Commands:
"protocol=https
"protocol=https
nhost=myhost.comnusername=john
npassword=doen
n" | git.exe credential approvenhost=myhost.com
nn" | git.exe credential fill
Both fail with error message:
fatal: refusing to work with credential missing protocol field
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: