src/hg-ssh
changeset 78 2a3407a14654
parent 77 8d14aac93b5d
child 79 3a58a95fae2f
--- a/src/hg-ssh	Fri Mar 06 13:26:35 2009 +0000
+++ b/src/hg-ssh	Fri Mar 06 13:30:37 2009 +0000
@@ -70,8 +70,7 @@
     fail("hg-ssh must have exactly one argument (%s)" 
         % sys.argv)
 
-remote_user = sys.argv[1]
-os.environ['REMOTE_USER'] = remote_user
+ruleset.rules.set(user = sys.argv[1])
 
 # Use a different hgrc for remote pulls - this way you can set
 # up access.py for everything at once without affecting local operations
@@ -86,5 +85,4 @@
     if os.path.isfile(f):
         ruleset.rules.readfile(f)
 
-ruleset.rules.set(user = getpath(remote_user))
 try_cmd(os.environ.get('SSH_ORIGINAL_COMMAND', '?'))