codestream icon indicating copy to clipboard operation
codestream copied to clipboard

Git command needs some escaping

Open attepulkkinen opened this issue 3 years ago • 0 comments

Using "Switch Branch & Start Work" feature gives error

Error: Command failed: C:\WINDOWS\system32\wsl.exe -d Ubuntu git -c core.quotepath=false -c color.ui=false checkout UTLP-1274-Super-(duper)-secret-stuff release-candidate
zsh:1: no matches found: UTLP-1274-Super-(duper)-secret-stuff

This is because ( and ) are not escaped

Doesn't work with bash either

Error: Command failed: C:\WINDOWS\system32\wsl.exe -d Ubuntu git -c core.quotepath=false -c color.ui=false checkout -b UTLP-1274-Super-(duper)-secret-stuff release-candidate
/usr/bin/bash: -c: line 0: syntax error near unexpected token `('
/usr/bin/bash: -c: line 0: `git -c core.quotepath=false -c color.ui=false checkout -b UTLP-1274-Super-(duper)-secret-stuff release-candidate'

Some version numbers:

com.codestream.jetbrains-codestream (12.8.0+216)
PhpStorm 2021.3.2 Build #PS-213.6777.58, built on January 31, 2022
Windows 10 19044.1466
WSL: Linux xxx 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
zsh 5.8 (x86_64-ubuntu-linux-gnu)

Not sure if relevant but issue title is from cloud Jira

attepulkkinen avatar Feb 08 '22 10:02 attepulkkinen