path: pass `path` to `peer` in infinite push
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 01 Dec 2022 02:26:34 +0100
changeset 49713 6f89a1d74511
parent 49712 905eb32fdf4e
child 49714 f04d459909c6
path: pass `path` to `peer` in infinite push We directly use the `path` object to build the `peer` object.
hgext/infinitepush/__init__.py
--- 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]