[PATCH] contrib/hooks: add sample post-receive hook using agefile

Ferry Huberts mailings at hupie.com
Tue Dec 23 16:15:15 CET 2014



On 23/12/14 15:40, John Keeping wrote:
> +agefile="$(git rev-parse --git-dir)"/info/web/last-modified

use $GIT_DIR here instead of rev-parse

> +
> +mkdir -p "$(dirname "$agefile")" &&
> +git for-each-ref \
> +	--sort=-authordate --count=1 \
> +	--format='%(authordate:iso8601)' \
> +	>"$agefile"

-- 
Ferry Huberts


More information about the CGit mailing list