Thanks to visit codestin.com Credit goes to libgit2.org
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