test smart http mode, update docs (including mob mode)
- allow a mob username to be defined; all unauthenticated access will look to gitolite like this user (if you setup apache also properly) - update doc with more details (some repeat stuff from `man git-http-backend` but it's probably worth having everything in one place
This commit is contained in:
parent
c8b1d8cc5b
commit
0360dc9f3f
6 changed files with 92 additions and 35 deletions
|
@ -74,6 +74,7 @@ if ($ENV{REQUEST_URI}) {
|
|||
# so the rest of the code stays the same (except the exec at the end).
|
||||
simulate_ssh_connection();
|
||||
|
||||
$ENV{REMOTE_USER} ||= $GL_HTTP_ANON_USER; # see doc/http-backend.mkd
|
||||
$user = $ENV{GL_USER} = $ENV{REMOTE_USER};
|
||||
} else {
|
||||
# no (more) arguments given in ssh mode? default user is $USER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue