You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "lazycommit.py", line 28, in <module>
print(info.summary)
File "/home/gmelodie/.local/lib/python3.8/site-packages/git/util.py", line 970, in __geta
ttr__
if getattr(item, self._id_attr) == attr:
AttributeError: 'PushInfo' object has no attribute 'push_infos'
Solution
I was using info = repo.remotes.origin.push() when instead I should be using info = repo.remotes.origin.push()[0] (origin.push() returns a list of info objects, each object for a particular head that was pushed, but we often push only one head)
The text was updated successfully, but these errors were encountered:
Leaving this here in case someone else has the same issue
Python version:
3.8
GitPython version:
3.1.18
Code I'm trying to run:
Full error message:
Solution
I was using
info = repo.remotes.origin.push()
when instead I should be usinginfo = repo.remotes.origin.push()[0]
(origin.push()
returns a list of info objects, each object for a particular head that was pushed, but we often push only one head)The text was updated successfully, but these errors were encountered: