PowerShell 5.1 ext cmd argument quoting
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do?
This MR implements https://gist.github.com/bilbothebaggins/efbbc2312ec72c4967622b340e4b26d6 which handles the required quoting to pass arguments to an external command when called from PowerShell Desktop (aka 5.1)
Why was this MR needed?
I encountered this issue when trying to set an empty git credential.helper while working on !5430 (merged).
This answer explains in great detail what is happening : https://stackoverflow.com/a/59681993/12274205
What's the best way to test this MR?
What are the relevant issue numbers?
Edited by Guillaume Chauvel