changeset 14462:f6a433671c06

hg-ssh: fix dispatch call to use dispatch.request() 08bfec2ef031 changed dispatch.dispatch() to accept a request object instead of a list of arguments
author Idan Kamara <idankk86@gmail.com>
date Sun, 29 May 2011 13:43:50 +0300
parents f5b0834cf685
children 81f559d1b9b2
files contrib/hg-ssh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/hg-ssh	Mon May 30 11:18:47 2011 +0200
+++ b/contrib/hg-ssh	Sun May 29 13:43:50 2011 +0300
@@ -42,7 +42,7 @@
     path = orig_cmd[6:-14]
     repo = os.path.normpath(os.path.join(cwd, os.path.expanduser(path)))
     if repo in allowed_paths:
-        dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
+        dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio']))
     else:
         sys.stderr.write("Illegal repository %r\n" % repo)
         sys.exit(-1)