--- 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', '?'))