src/hg-ssh
changeset 39 f5055ce263c7
parent 36 b3237aabd0fe
child 43 0a7fc4652793
--- a/src/hg-ssh	Thu Feb 19 16:36:41 2009 +0000
+++ b/src/hg-ssh	Thu Feb 19 17:51:06 2009 +0000
@@ -17,7 +17,7 @@
 This script is called by hg-ssh-wrapper with no arguments - everything
 should be in enviroment variables:
 
-HG_ACCESS_RULES_FILE identifies the path to the rules file
+HG_ACCESS_RULES_PATH identifies the paths to the rule files
 REMOTE_USER the remote user (which is the key used by ssh)
 SSH_ORIGINAL_COMMAND the command the user was trying to run
 
@@ -68,7 +68,7 @@
     fail("hg-ssh must have no arguments (%s)" 
         % sys.argv)
 
-rules = ruleset.Ruleset.readfile(os.environ['HG_ACCESS_RULES_FILE'])
+rules = ruleset.rules_from_env()
 rules.set(user = getpath(os.environ['REMOTE_USER']))
 rules.set(branch = None, file = None)
 todispatch = get_cmd(rules,