aboutsummaryrefslogtreecommitdiffstats
path: root/roles/gitolite/templates/var/www/cgi-bin/gitolite-wrapper.j2
blob: 38dc42694b6736daeb20d862771bb04d413bdcc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# Strip realm from REMOTE_USER.
# This is a hack around GssapiLocalName not working on RHEL 8:
#  https://bugzilla.redhat.com/show_bug.cgi?id=1787630
if [ -v REMOTE_USER ]; then
  export REMOTE_USER=${REMOTE_USER%@*}
fi

export GIT_PROJECT_ROOT='{{ gitolite_home }}/repositories'
export GITOLITE_HTTP_HOME='{{ gitolite_home }}'
export GIT_HTTP_EXPORT_ALL=1

exec {{ gitolite_shell }}