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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -