-C option to git must a recent thing
Merge pull request #1 from mjwillson/patch-2

Use "--git-dir" rather than "-C", for compatibility