refresh-auth
changeset 1 5bc7446cd2d1
parent 0 41ecb5a3172c
child 3 7e659a6870de
equal deleted inserted replaced
0:41ecb5a3172c 1:5bc7446cd2d1
    16         # FIXME: should ignore any path that contains dodgy characters
    16         # FIXME: should ignore any path that contains dodgy characters
    17         keyname = ffn[5:]
    17         keyname = ffn[5:]
    18         kf = open(ffn)
    18         kf = open(ffn)
    19         try:
    19         try:
    20             for l in kf:
    20             for l in kf:
    21                 command='cd repos && hgadmin/hg-ssh %s' % keyname
    21                 command='./.hg-ssh-wrapper %s' % keyname
    22                 prefix=('command="%s",no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding'
    22                 prefix=('command="%s",no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding'
    23                     % command)
    23                     % command)
    24                 #prefix='no-port-forwarding,no-X11-forwarding,no-agent-forwarding'
    24                 #prefix='no-port-forwarding,no-X11-forwarding,no-agent-forwarding'
    25                 akeys.write("%s %s\n" % (prefix, l.strip()))
    25                 akeys.write("%s %s\n" % (prefix, l.strip()))
    26         finally:
    26         finally: