Tell fedmsg on dist-git to just ignore pygit2 Tag objects.

This commit is contained in:
Ralph Bean 2015-02-20 04:12:41 +00:00
parent 28c1442b24
commit e800d7c035

View file

@ -88,6 +88,11 @@ for line in lines:
def _build_commit(rev):
commit = repo.revparse_single(rev)
# Tags are a little funny, and vary between versions of pygit2, so we'll
# just ignore them as far as fedmsg is concerned.
if isinstance(commit, pygit2.Tag):
return None
files, total = build_stats(commit)
return dict(