ejwa / gitinspector

:bar_chart: The statistical analysis tool for git repositories
GNU General Public License v3.0
2.35k stars 324 forks source link

gitinspector.py --version reports "Error processing git repository ..." #177

Open jamesquilty opened 6 years ago

jamesquilty commented 6 years ago

On the current Master commit, 15 May 2017 (6d77989e341e043c9a7f09757000d75701b32d84), trying to obtain the version using the --version flag produces an error:

$ gitinspector.py --version
Error processing git repository at "...".

The 0.4.4 release produces a more expected result:

$ gitinspector_044.py --version
gitinspector 0.4.4
Copyright © 2012-2016 Ejwa Software. All rights reserved.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Adam Waldenberg.

This is a minor bug, but it would be useful if it could be fixed because I am running multiple versions.

adam-waldenberg commented 6 years ago

Thank you @jamesquilty. I guess we have a regression in there. Will take a look when I have time.

jamesquilty commented 5 years ago

Some more information: when run from a directory which contains a .git folder the expected output is produced:

$ gitinspector.py --version
gitinspector 0.5.0dev
Copyright © 2012-2015 Ejwa Software. All rights reserved.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Adam Waldenberg.

but, when run from a directory which does not contain a .git folder, the above Error processing git repository at "..." is reported.