Use escapeshellarg() for the git dir.
tree531a2366dad6f6d3bab7811787d3f1cc69ffeeb5
-rw-r--r-- 30 .gitignore
-rw-r--r-- 2111 default.css
drwxr-xr-x - doc
-rw-r--r-- 730 favicon.png
drwxr-xr-x - inc
-rw-r--r-- 14580 index.php
drwxr-xr-x - plugins
drwxr-xr-x - templates