Closed
Description
Hi
for one particular repository, gitinspector just stopped working
Fetching and calculating primary statistics (1 of 2): 99%Traceback (most recent call last):
File "../gitinspector/gitinspector.py", line 24, in <module>
gitinspector.main()
File "/Users/minarikj/apps/gitinspector/gitinspector/gitinspector.py", line 206, in main
run.process(repos)
File "/Users/minarikj/apps/gitinspector/gitinspector/gitinspector.py", line 70, in process
changes = Changes(repo, self.hard)
File "/Users/minarikj/apps/gitinspector/gitinspector/changes.py", line 222, in __init__
self.commits = [item for sublist in self.commits for item in sublist]
TypeError: 'NoneType' object is not iterable
I am running Mac OS El Capitan 10.11.4
script is being run with Python 2.7
It works for other repositories, and if I git reset --hard HEAD^
(i.e. hard reset to second last commit), it works for this particular repository as well. The last commit that 'breaks' it containts nothing more than a couple of files changed and added (merge from a PR branch). Now adding a new commit on top of HEAD makes it work again.