GitPython: Raise exception when git push fails

Having to perform bit operations on flags is very unintuitive. The command line git client fails when push fails.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Reactions: 20
  • Comments: 19 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I have the same issue. An exception should be raised instead.

Error lines received while fetching: error: failed to push some refs to 'git@github.com:NicoHood/project.git'
hint: Updates were rejected because the tag already exists in the remote.

For some reason, the PushInfoList class has been shipped since 35f7e9486 aka. 3.1.25~10 but can’t be found by searching for it on https://gitpython.readthedocs.io/en/latest/ (latest or specific versions). So I suppose some extra doc metadata is needed to improve discoverability?