How to deal with file names which contain spaces in Ruby(In Git Bash) -
I have a problem with running some GIT commands, where there are white spaces in the file names with Ruby, like :
aaa = "xxxxxxx / xxxx / bom \ explosion.txt" git update-index --assume-unchanged - # {aaa} ` Or
aaa = "xxxxxxx / xxxx / bom explosion.txt". Shelvescape GIT Update-Index - Asymmetric - # {AAA} ` I have either tried to avoid the above and it is run in the GIT bash. , But none of them works with the error message:
Fatal: The 'xxxxxxx / xxxx / bom' index Someone has some Have ideas?
You can ignore a great extent if you specify parameters individually, then concerns Avoid:
System ("git", "update-index", "--assume-unchanged", "-", aaa) It passes without arguments straight to the debate, without explanation. This is the most reliable way to pass them correctly.
Comments
Post a Comment