Submitter | phabricator |
---|---|
Date | May 21, 2018, 6:36 p.m. |
Message ID | <ea61f543664d0f643c470009ff937c60@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/31783/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/contrib/hg-ssh b/contrib/hg-ssh --- a/contrib/hg-ssh +++ b/contrib/hg-ssh @@ -39,6 +39,7 @@ from mercurial import ( dispatch, + pycompat, ui as uimod, ) @@ -69,7 +70,7 @@ path = cmdargv[2] repo = os.path.normpath(os.path.join(cwd, os.path.expanduser(path))) if repo in allowed_paths: - cmd = [b'-R', repo, b'serve', b'--stdio'] + cmd = [b'-R', pycompat.fsencode(repo), b'serve', b'--stdio'] req = dispatch.request(cmd) if readonly: if not req.ui: