Skip to content

Surface fetch/pull/push kill_after_timeout and reset default to None #1340

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 17 commits into from
Sep 18, 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
propagate kwargs in do_test_fetch
  • Loading branch information
sroet committed Sep 10, 2021
commit c55a8e3e227fc04d10a28f8e8f61809148b19223
4 changes: 2 additions & 2 deletions test/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _commit_random_file(self, repo):
index.commit("Committing %s" % new_file)
return new_file

def _do_test_fetch(self, remote, rw_repo, remote_repo):
def _do_test_fetch(self, remote, rw_repo, remote_repo, **kwargs):
# specialized fetch testing to de-clutter the main test
self._do_test_fetch_info(rw_repo)

Expand All @@ -183,7 +183,7 @@ def get_info(res, remote, name):
# put remote head to master as it is guaranteed to exist
remote_repo.head.reference = remote_repo.heads.master

res = fetch_and_test(remote)
res = fetch_and_test(remote, **kwargs)
# all up to date
for info in res:
self.assertTrue(info.flags & info.HEAD_UPTODATE)
Expand Down