Introduced a bug in last hg-ssh change
authorPaul Crowley <paul@lshift.net>
Fri, 20 Feb 2009 11:37:42 +0000
changeset 46 d2bbab5ffd0e
parent 45 59dee3c04279
child 47 ebcc230f21e4
Introduced a bug in last hg-ssh change
src/hg-ssh
--- a/src/hg-ssh	Fri Feb 20 11:19:29 2009 +0000
+++ b/src/hg-ssh	Fri Feb 20 11:37:42 2009 +0000
@@ -54,11 +54,13 @@
         if rules.allow("read", repo=repo):
             os.environ["HG_REPO_PATH"] = repo
             dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
+            return
     elif cmd.startswith('hg init '):
         repo = getpath(cmd[8:])
         if rules.allow("init", repo=repo):
             os.environ["HG_REPO_PATH"] = repo
             dispatch.dispatch(['init', repo])
+            return
     fail("Illegal command %r" % cmd)
 
 #logfile = open("/tmp/hg-ssh.%d.txt" % os.getpid(), "w")