diff -r 91f22b89ea05 -r 8ac33b3f2552 mercurial/dispatch.py --- a/mercurial/dispatch.py Tue Oct 22 17:23:28 2024 +0200 +++ b/mercurial/dispatch.py Tue Oct 22 23:50:11 2024 +0200 @@ -986,6 +986,9 @@ lui.readconfig(os.path.join(path, b".hg", b"hgrc-not-shared"), path) if rpath: + # the specified path, might be defined in the [paths] section of the + # local repository. So we had to read the local config first even if it + # get overriden here. path_obj = urlutil.get_clone_path_obj(lui, rpath) path = path_obj.rawloc lui = ui.copy()