This enables us to change the working directory for the git commands
in the function upon request. This change is in preparation of the
completion of #24.
Error out gracefully when gitinspector is called with a path that does not
point to a git repository, instead of printing a stack trace.
Signed-off-by: Christian Kastner <debian@kvr.at>
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
The base name of the returned absolute path is also the name of the
repository from which the statistics were gathered. We will use this in
the generated reports.