Git
Git Hook
Git Hook
scripts and hooks for use with a centralized git repo
Git Daemon
Git Daemon
export repository
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
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