-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analysis bugs introduced by aeb9ad6 #68
Comments
The cut & paste grinch strikes again. It should be referencing self.commits, not commits. I'll push up a fix shortly. |
Done. The above fix should clear up the issue. |
Now I have this on HEAD:
This seems to be unrelated bug? Should I reported separately? |
It's directly related to the same change (aeb9ad6).. So we can keep it here. Could you try to print out the length of "lines" on row 192 when this happens ? Is git rev-list maybe returning an empty result? |
Yes, it is empty. I do a set of statistics (weekly, monthly) and some repos do not have changes. However, I believe there is a problem with indentation on line 203, which is creating scope for local variable. |
Actually, lines 204-206 should be moved one indent block backwards. It won't change the behavior. The else is intended as an else/finalization condition for the for loop (https://docs.python.org/2/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops). The problem is that it can enter the else immediately if there are no new commits. Thus resulting in "entry" not being declared at all. I'll look at it now. It's easily reproducible with "--since". |
Done. Hopefully all sorted out now. |
Still not quite there:
|
This time it's a bit more tricky. Taking a look see. |
Let's hope for the best this time. Also, I opened issue #72 in order to mitigate the hit caused by bigger changes in the future. |
Thank you very much. Now it is working. |
Commit aeb9ad6 broke generating for me (OSX):
I'm running gitinspector with these arguments:
gitinspector.py --file-types=php,tpl,css,js --format=html --timeline=true --responsibilities=true --metrics=true --exclude=file:cms/libs,file:admin/templates/emails,revision:8543c2474ade9a84df6ae5726ea89c825b12d721 --weeks=false '--since=last monday'
The text was updated successfully, but these errors were encountered: