Show More
@@ -39,6 +39,7 import hgdemandimport ; hgdemandimport.e | |||
|
39 | 39 | |
|
40 | 40 | from mercurial import ( |
|
41 | 41 | dispatch, |
|
42 | pycompat, | |
|
42 | 43 | ui as uimod, |
|
43 | 44 | ) |
|
44 | 45 | |
@@ -69,7 +70,7 def main(): | |||
|
69 | 70 | path = cmdargv[2] |
|
70 | 71 | repo = os.path.normpath(os.path.join(cwd, os.path.expanduser(path))) |
|
71 | 72 | if repo in allowed_paths: |
|
72 | cmd = [b'-R', repo, b'serve', b'--stdio'] | |
|
73 | cmd = [b'-R', pycompat.fsencode(repo), b'serve', b'--stdio'] | |
|
73 | 74 | req = dispatch.request(cmd) |
|
74 | 75 | if readonly: |
|
75 | 76 | if not req.ui: |
General Comments 0
You need to be logged in to leave comments.
Login now