I just hit an issue using GitPython with Openstack Nova in F16 which is fixed upstream If you clone the repo from here: https://github.com/openstack/nova and then do: repo = git.Repo(".") for commit in repo.head.commit.iter_parents(): print commit.author.email you get: Traceback (most recent call last): File "./t.py", line 6, in <module> for commit in repo.head.commit.iter_parents(): File "/usr/lib/python2.7/site-packages/git/objects/commit.py", line 253, in _iter_from_process_or_stream assert commit_tokens[0] == "commit" AssertionError because the commit has an empty commit message, see: $> git show --pretty=raw a81547f Easiest answer would be to update to 0.3.2.RC1
Thanks for the report! I'll look into updating it and what changes would be acceptable for f16.
I've done a build for rawhide: http://koji.fedoraproject.org/koji/buildinfo?buildID=265096 but I'm a bit reluctant to bring it into F16 at this time. Consumers require some minor porting work from 0.2 to 0.3 and I'm not sure what all consumers are out there. Would you be willing to install/rebuild the rawhide package from above and test it out for your use case? You'll also need python-gitdb and python-async as new deps. Alternatively, do you happen to know which commit fixes this bug, so that I might backport it to the 0.2 branches for earlier Fedoras and EPEL?
Thanks much Jesse Two things: 1) I actually tested 0.3 using pip install earlier and it worked fine for my usecase 2) It turns out we were using GitPython for a really stupidly simple thing, so I just made us run the command directly and parse the output. See: https://review.openstack.org/#change,561 So, I'm fine with just having it updated in rawhide