maks blog

maks blog, Hacks, fun around free software.

maximilian attems
email maks

Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

There's more than one way to view this weblog; try these flavours on for size.

Other blogs in our institute or friends.

Mon, 17 Jul 2006

Git server setup
On Debian take care to install git-core and optionally gitweb for the web interface.

 grep git /etc/inetd.conf
# git server
git     stream  tcp     nowait  root /usr/bin/git-daemon git-daemon --inetd --syslog --export-all --base-path=/var/cache/git
Add the git service:
 grep git /etc/services
git             9418/tcp                        # git
Now add your users in /var/cache/git/$user and give them write rights. For the fancy web interface you need those settings:
 cat /etc/gitweb.conf
# path to git projects (.git)
$projectroot = "/var/cache/git/"

# directory to use for temp files
$git_temp = "/tmp";

# target of the home link on top of all pages
$home_link = $my_uri;

# html text to include at home page
$home_text = "/var/cache/git/indextext.html";

# file with project list; by default, simply scan the projectroot dir.
$projects_list = '/etc/gitweb.lst';
Latest gitweb has branches for mod_perl usage for now this is enough:
 egrep git /etc/apache2/sites-enabled/ssl
 ScriptAlias /git /usr/lib/cgi-bin/gitweb.cgi
Small sample project list:
mattems%2Fklibc%2F.git maximilian+attems

[/tech] permanent link