site-josuah

/usr/josuah
Log | Files | Refs

commit ca1305281610933dcb104b240dcadc300e5b85e9
parent fad04475eaaf43a086f789fab027d1e9cfbe6fd1
Author: Josuah Demangeon <me@josuah.net>
Date:   Tue, 27 Oct 2020 07:57:01 +0100

use built-in hooks

Diffstat:
A.gitdescription | 1+
M.githooks/post-update | 15++++-----------
2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/.gitdescription b/.gitdescription @@ -0,0 +1 @@ +/usr/josuah diff --git a/.githooks/post-update b/.githooks/post-update @@ -1,11 +1,4 @@ -#!/bin/sh -eux -path=$PWD -name=${PWD##*/} - -mkdir "/var/www/htdocs/git/$name" -cd "/var/www/htdocs/git/$name" -stagit "$path" - -cd /var/www/htdocs/git/ -stagit-index >index.html \ - $(printf '%s\n' /git/*/git-daemon-export-ok | sed 's,/[^/]*$,,') +#!/bin/sh -eu +git hooks run stagit +git hooks run stagit-gopher +git hooks run make-dist