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
{{ message }}
Repository navigation
AttributeError: 'PushInfo' object has no attribute 'name' #820
A simple call to:
result = self._client.remotes.origin.push(**args)
print(result.summary)
results in:
Traceback (most recent call last):
File "C:\Users\jsmith\Envs\halpy\lib\site-packages\halpy\cms.py", line 623, in checkin_files
print(result.summary)
File "C:\Users\jsmith\Envs\halpy\lib\site-packages\git\util.py", line 883, in getattr
if getattr(item, self._id_attr) == attr:
AttributeError: 'PushInfo' object has no attribute 'name'
Which version of GitPython are you using? Could you also provide a more self-contained example on how to reproduce the issue? Maybe **args makes all the difference.
Thank you
I have a similar problem, when printing result.summary:
AttributeError: 'PushInfo' object has no attribute 'push_infos'
This is the full stack:
print(pushinfo.summary)
File "/data/users/leit/fbsource/fbcode/buck-out/dev/gen/kernel/ksyncer/ksyncer#link-tree/git/util.py", line 998, in __getattr__
if getattr(item, self._id_attr) == attr:
I think it would be good to open a new issue for this, as that would contain instruction to reproduce a possibly new issue that looks similar. All that is under the assumption that this issue was actually fixed a couple of years ago - otherwise please do feel free to add instructions here for a reproduction to have this issue reopened instead. Thank you.
Activity
Byron commentedon Jan 12, 2019
Which version of GitPython are you using? Could you also provide a more self-contained example on how to reproduce the issue? Maybe
**argsmakes all the difference.Thank you
tardis4500 commentedon Mar 11, 2019
I'm using 2.1.11 and the following will reproduce the error.
import gitgit_client = git.Repo.clone_from(some_repo, 'test_clone')result = git_client.remotes.origin.push()print(result.summary)Byron commentedon Jul 20, 2019
Thanks a lot! I could reproduce the issue.
metakernelteam commentedon Oct 5, 2022
I have a similar problem, when printing result.summary:
AttributeError: 'PushInfo' object has no attribute 'push_infos'This is the full stack:
Asmokin11 commentedon May 26, 2023
I am also facing the same error as @metakernelteam when trying to print the summary
Byron commentedon May 27, 2023
I think it would be good to open a new issue for this, as that would contain instruction to reproduce a possibly new issue that looks similar. All that is under the assumption that this issue was actually fixed a couple of years ago - otherwise please do feel free to add instructions here for a reproduction to have this issue reopened instead. Thank you.
Fix gitpython-developers#820