Allow a directory to be specified for git.