scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 6bbc84f3e2765a73cebe896eff907103bf2fdab1
parent fadeed9565761d3d2948c05d57cf76bc05f7b8e0
Author: sin <sin@2f30.org>
Date:   Wed Jul 30 17:59:54 +0100

Add post-receive script for our git repos

Diffstat:
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