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.
Prerequisites
Summary
With the latest update of the PowerShell extension, piping data to git.exe STDIN fails from the
PowerShell Integrated Consoleconfigured to use Windows PowerShell (version 5.1.19041.1682). For example:The same commands were working as expected from the
PowerShell Integrated Consoleof extension version 2021.12.0, from a regular Windows PowerShell terminal or from thePowerShell Integrated Consoleof 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.1Steps to Reproduce
Commands:
"protocol=httpsnhost=myhost.comnusername=johnnpassword=doenn" | git.exe credential approve"protocol=httpsnhost=myhost.comnn" | git.exe credential fillBoth fail with error message:
fatal: refusing to work with credential missing protocol fieldVisuals
No response
Logs
No response