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
- dns: handle push failures * GitPython doesn't raise an exception if a failure occurs when pushing to the remote. Handling the error based on the push flags. See also: https://github.com/gitpython... — committed to wikimedia/operations-software-netbox-extras by volans- 5 years ago
- Raise exception when push fails Closes #621 — committed to Sjord/GitPython by Sjord 3 years ago
- Raise exception when push fails Closes #621 — committed to Sjord/GitPython by Sjord 3 years ago
- Raise exception when push fails Closes #621 — committed to Sjord/GitPython by Sjord 3 years ago
- Let remote.push return a PushInfoList List-like, so that it's backward compatible. But it has a new method raise_on_error, that throws an exception if anything failed to push. Related to #621 — committed to Sjord/GitPython by Sjord 3 years ago
- Let remote.push return a PushInfoList List-like, so that it's backward compatible. But it has a new method raise_on_error, that throws an exception if anything failed to push. Related to #621 — committed to Sjord/GitPython by Sjord 3 years ago
- Let remote.push return a PushInfoList List-like, so that it's backward compatible. But it has a new method raise_on_error, that throws an exception if anything failed to push. Related to #621 — committed to Sjord/GitPython by Sjord 3 years ago
- Let remote.push return a PushInfoList List-like, so that it's backward compatible. But it has a new method raise_on_error, that throws an exception if anything failed to push. Related to #621 — committed to gitpython-developers/GitPython by Sjord 3 years ago
- reposync: improve push error handeling inspired by: https://github.com/gitpython-developers/GitPython/issues/621#issuecomment-1093837357 Change-Id: I98570930ac54aea57f7e632ff6599aa51d5f45d9 — committed to wikimedia/operations-software-spicerack by b4ldr 2 years ago
I have the same issue. An exception should be raised instead.
For some reason, the
PushInfoListclass has been shipped since 35f7e9486 aka.3.1.25~10but 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?