githubbrowser/Pre-commit-hooks — pull request #2 by RoLYroLLs (2014-04-03 15:01:13+00:00)
Title: Added Support for Directory with Spaces in Name

Using this script in a windows environment I found issues when it was located in a path that contained spaces. I'm not sure if this is the best way to fix this as I'm not familar with bash scripting but after Google'ing around and many tests I found this to work.