Fix inheritance issue at commit.iter_items by yvolchkov · Pull Request #1119 · gitpython-developers/GitPython
class Child(Commit): def __init__(self, *args, **kwargs): super(Child, self).__init__(*args, **kwargs)
child_commits = list(Child.iter_items(self.rorepo, 'master', paths=('CHANGES', 'AUTHORS'))) assert type(child_commits[0]) == Child
def test_iter_items(self): # pretty not allowed self.assertRaises(ValueError, Commit.iter_items, self.rorepo, 'master', pretty="raw")