diff -r 905eb32fdf4e -r 6f89a1d74511 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]