Git

Git Hook

scripts and hooks for use with a centralized git repo

Git Daemon

export repository

system-wide

$ vi /etc/sv/git-daemon/run

#!/bin/sh

exec 2>&1

echo 'git-daemon starting.'

exec git-daemon --verbose --export-all --base-path=/var/cache /var/cache/git

customized by repository

$ touch repo.git/git-daemon-export-ok

Enable Upload Archive Service

system-wide

$ vi /etc/sv/git-daemon/run

#!/bin/sh

exec 2>&1

echo 'git-daemon starting.'

exec git-daemon --verbose --enable=upload-archive --base-path=/var/cache /var/cache/git

customized by repository

$ vi repo.git/config

[daemon]

uploadarch = true