Skip to content

Let remote.push return a PushInfoList #1360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 13, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add raise_if_error() to tutorial
  • Loading branch information
Sjord committed Nov 9, 2021
commit e5fd7b71545b42ae9da9943d922341196c405824
3 changes: 2 additions & 1 deletion test/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ def test_references_and_objects(self, rw_dir):
origin.rename('new_origin')
# push and pull behaves similarly to `git push|pull`
origin.pull()
origin.push()
origin.push() # attempt push, ignore errors
origin.push().raise_if_error() # push and raise error if it fails
# assert not empty_repo.delete_remote(origin).exists() # create and delete remotes
# ![25-test_references_and_objects]

Expand Down