author | Paul Crowley <paul@lshift.net> |
Fri, 06 Mar 2009 12:27:16 +0000 | |
changeset 70 | abb9ed8972e0 |
parent 69 | e31646deafc8 |
child 71 | 1120f78f81da |
permissions | -rwxr-xr-x |
0
41ecb5a3172c
separate out executables and data
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
1 |
#!/bin/sh |
50
77d97aa18f29
update dates and copyright notices
Paul Crowley <paul@lshift.net>
parents:
39
diff
changeset
|
2 |
# Copyright 2008-2009 LShift Ltd |
0
41ecb5a3172c
separate out executables and data
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
3 |
|
36
b3237aabd0fe
Change the name to mercurial-server
Paul Crowley <paul@lshift.net>
parents:
34
diff
changeset
|
4 |
# This file should live in /etc/mercurial-server. It expects |
10 | 5 |
# to be specified as the target of the "command" section in the prefix |
6 |
# of a key in the authorized_keys file, and be passed a name associated |
|
7 |
# with an ssh key as its only argument. It does some setting up before |
|
8 |
# calling hg-ssh, which does the real work of deciding whether to allow |
|
9 |
# the users action based on the type of the action, the key name, and |
|
10 |
# the contents of the specified rules file. |
|
4
dcd195f3e52c
move config out of Python files; don't make hg-ssh-wrapper a dotfile;
Paul Crowley <paul@lshift.net>
parents:
0
diff
changeset
|
11 |
|
10 | 12 |
# If your repository is laid out differently you may need to modify |
13 |
# this file. |
|
4
dcd195f3e52c
move config out of Python files; don't make hg-ssh-wrapper a dotfile;
Paul Crowley <paul@lshift.net>
parents:
0
diff
changeset
|
14 |
|
0
41ecb5a3172c
separate out executables and data
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
15 |
set -e |
8
1efc50c61a26
improve hg-ssh-wrapper, suggest HGRCPATH trick
Paul Crowley <paul@lshift.net>
parents:
4
diff
changeset
|
16 |
|
1efc50c61a26
improve hg-ssh-wrapper, suggest HGRCPATH trick
Paul Crowley <paul@lshift.net>
parents:
4
diff
changeset
|
17 |
# Use a different hgrc for remote pulls - this way you can set |
18
538d6b198f4a
Big change to support file conditions; format of hg-ssh-access.conf
Paul Crowley <paul@lshift.net>
parents:
10
diff
changeset
|
18 |
# up access.py for everything at once without affecting local operations |
538d6b198f4a
Big change to support file conditions; format of hg-ssh-access.conf
Paul Crowley <paul@lshift.net>
parents:
10
diff
changeset
|
19 |
|
36
b3237aabd0fe
Change the name to mercurial-server
Paul Crowley <paul@lshift.net>
parents:
34
diff
changeset
|
20 |
HGRCPATH=/etc/mercurial-server/remote-hgrc |
18
538d6b198f4a
Big change to support file conditions; format of hg-ssh-access.conf
Paul Crowley <paul@lshift.net>
parents:
10
diff
changeset
|
21 |
export HGRCPATH |
8
1efc50c61a26
improve hg-ssh-wrapper, suggest HGRCPATH trick
Paul Crowley <paul@lshift.net>
parents:
4
diff
changeset
|
22 |
|
1efc50c61a26
improve hg-ssh-wrapper, suggest HGRCPATH trick
Paul Crowley <paul@lshift.net>
parents:
4
diff
changeset
|
23 |
cd repos |
69
e31646deafc8
Starting to move stuff out of hg-ssh-wrapper
Paul Crowley <paul@lshift.net>
parents:
62
diff
changeset
|
24 |
exec /usr/local/lib/mercurial-server/hg-ssh $1 |