Get the path of the working directory for this repository
If the repository is bare, this function will always return NULL.
A repository object
the path to the working dir, if it exists