src/init/conf/hg-ssh-wrapper
changeset 69 e31646deafc8
parent 62 f1e319d3672a
child 70 abb9ed8972e0
equal deleted inserted replaced
68:a88134f77486 69:e31646deafc8
    18 # up access.py for everything at once without affecting local operations
    18 # up access.py for everything at once without affecting local operations
    19 
    19 
    20 HGRCPATH=/etc/mercurial-server/remote-hgrc
    20 HGRCPATH=/etc/mercurial-server/remote-hgrc
    21 export HGRCPATH
    21 export HGRCPATH
    22 
    22 
    23 # Set up this environment variable - useful for hg hooks to check.
       
    24 REMOTE_USER=$1
       
    25 export REMOTE_USER
       
    26 
       
    27 cd repos
    23 cd repos
    28 HG_ACCESS_RULES_PATH=/etc/mercurial-server/access.conf:$(pwd)/hgadmin/access.conf
    24 HG_ACCESS_RULES_PATH=/etc/mercurial-server/access.conf:$(pwd)/hgadmin/access.conf
    29 export HG_ACCESS_RULES_PATH
    25 export HG_ACCESS_RULES_PATH
    30 exec /usr/local/lib/mercurial-server/hg-ssh
    26 exec /usr/local/lib/mercurial-server/hg-ssh $1