saltstack/salt — pull request #13577 by Lendar (2014-06-19 22:08:41+00:00)
Title: Fix quoting problem in git.clone

`git.clone` fails if `cwd` contains space.

```
$ salt-call git.clone '/Users/lendar/Library/Application Support/Sublime Text 2/Packages/sublime-text' https://github.com/saltstack/sublime-text
[INFO ] Executing command 'git clone https://github.com/saltstack/sublime-text /Users/lendar/Library/Application Support/Sublime Text 2/Packages/sublime-text ' in directory '/Users/lendar'
[ERROR ] Command 'git clone https://github.com/saltstack/sublime-text /Users/lendar/Library/Application Support/Sublime Text 2/Packages/sublime-text ' failed with return code: 129
[ERROR ] stderr: Too many arguments.
```

Similar merged fixes:

- https://github.com/saltstack/salt/pull/9865 (via @s0undt3ch)
- https://github.com/saltstack/salt/commit/d4bf456e29d73a7c92bf1a04e773fd1f27166cda (via @garethgreenaway) that fix is OK, but fails on weird filenames like `foo".tar`