Get the normalized path to the working directory of the repository.
If the repository is bare, there is no working directory and NULL we be returned.
a repository object
NULL if the repository is bare; absolute path to the working directory otherwise.