--- 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")