src/init/conf/hg-ssh-wrapper
author Paul Crowley <paul@lshift.net>
Fri, 06 Mar 2009 12:32:25 +0000
changeset 71 1120f78f81da
parent 70 abb9ed8972e0
child 72 582808b47653
permissions -rwxr-xr-x
Move more into hg-ssh

#!/bin/sh
# Copyright 2008-2009 LShift Ltd

# This file should live in /etc/mercurial-server.  It expects
# to be specified as the target of the "command" section in the prefix
# of a key in the authorized_keys file, and be passed a name associated
# with an ssh key as its only argument.  It does some setting up before
# calling hg-ssh, which does the real work of deciding whether to allow
# the users action based on the type of the action, the key name, and
# the contents of the specified rules file.

# If your repository is laid out differently you may need to modify
# this file.

set -e

cd repos
exec /usr/local/lib/mercurial-server/hg-ssh $1