The issue is ruby's `system` method which interprets args in the shell.
They should have used `popen` instead.
This is similar to python's subprocess with `shell=True`
Edit: I'm wrong!
> ls-remote has a parameter --upload-pack which can be used to execute a new shell