Skip to content
Matches a Node to a Git Repository - creating it and managing access rights
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



1. Git-Directory
You need a directory where all git repositories will be created. E.g.
After enabling the Module set this in the administration interface

2. Apache Config for write support
Enable DAV support:
> a2enmod dav dav_fs

Add the following lines to the apache virtualhost directive:
  <Directory /var/www/git/>
    Dav On

3. Apache Access control to git directories
Enable the "external authentication" module:
> apt-get install libapache2-mod-authnz-external

Add the following lines to the apache virtualhost directive:
  DefineExternalAuth git_repo pipe DRUPAL_ROOT/modules/git_repo/git_auth
  DefineExternalGroup git_repo pipe DRUPAL_ROOT/modules/git_repo/git_group

Replace DRUPAL_ROOT to the correct path to your drupal installation, e.g.

4. Use memcached to speed up authentication
The external scripts will be called over and over. Loading the drupal
libraries every time to check for the user takes a lot of time. If you
install memcached the authorization will be saved for some seconds,
speeding up things.

> apt-get install memcached php5-memcache
> /etc/init.d/apache2 reload
You can’t perform that action at this time.