From mboxrd@z Thu Jan 1 00:00:00 1970 From: mailings at hupie.com (Ferry Huberts) Date: Tue, 23 Dec 2014 16:15:15 +0100 Subject: [PATCH] contrib/hooks: add sample post-receive hook using agefile In-Reply-To: References: Message-ID: <54998703.5090901@hupie.com> 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