commit 6bbc84f3e2765a73cebe896eff907103bf2fdab1 parent fadeed9565761d3d2948c05d57cf76bc05f7b8e0 Author: sin <sin@2f30.org> Date: Wed, 30 Jul 2014 17:59:54 +0100 Add post-receive script for our git repos Diffstat:
A | post-receive | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/post-receive b/post-receive @@ -0,0 +1,15 @@ +#!/bin/sh + +REPO=$(basename `pwd`) +REPO=${REPO%.*} + +echo "Date: $(LANG=C date "+%a, %d %b %Y %T %z") +From: git@2f30.org +To: allusers@2f30.org +Subject: [$REPO] $(git log -1 --pretty=format:"%s || %an") +Content-Type: text/plain; charset=\"utf-8\" +Content-Transfer-Encoding: 8bit +MIME-Version: 1.0 + +$(git log -1 -p) +" | ssh vortex /usr/sbin/sendmail -f git@2f30.org allusers@2f30.org