This is an evolution of the thread I posted here: http://devnet.jetbrains.com/thread/444783
I'm having a strange issue with only one PC. When I try to do any operations with msysgit from IDEA or PyCharm, it says that the operation has failed. It only does this for users whose usenames have spaces in them.
For example, if I'm logged in as "SomeUser", it will work fine. If I log in as "Some User", it will fail. This happens if I try to "Test" a new git remote-repo URL, or if I try to pull/fetch/push in an existing project.
And it only does this on one PC. Another PC, next to it, works for spaced and non-spaced usernames.
The idea.log file will contain something like the following:
2013-05-22 07:19:41,755  INFO - #git4idea.update.GitFetcher - fetching H:\IdeaProjects\Project
2013-05-22 07:19:41,756  INFO - git4idea.commands.GitHandler - cd H:\IdeaProjects\Project
2013-05-22 07:19:41,756  INFO - git4idea.commands.GitHandler - git fetch --progress --prune origin
2013-05-22 07:19:41,812  INFO - git4idea.commands.GitHandler - 'C:\Users\Some' is not recognized as an internal or external command,
2013-05-22 07:19:41,812  INFO - git4idea.commands.GitHandler - operable program or batch file.
2013-05-22 07:19:41,813  INFO - git4idea.commands.GitHandler - fatal: Could not read from remote repository.
So, somehow, git isn't getting the user's home directory properly quoted from IDEA. Oddly, if I run any of the commands reported by GitHandler (like "git fetch origin") from Git Bash, those work fine. It's only when trying to run Git from IDEA or PyCharm.