path: pass `path` to `peer` in infinite push
We directly use the `path` object to build the `peer` object.
--- a/hgext/infinitepush/__init__.py Thu Dec 01 02:21:18 2022 +0100
+++ b/hgext/infinitepush/__init__.py Thu Dec 01 02:26:34 2022 +0100
@@ -856,7 +856,7 @@
result = orig(ui, repo, *dests, **pycompat.strkwargs(opts))
if common.isremotebooksenabled(ui):
if bookmark and scratchpush:
- other = hg.peer(repo, opts, destpath)
+ other = hg.peer(repo, opts, path)
try:
fetchedbookmarks = other.listkeyspatterns(
b'bookmarks', patterns=[bookmark]