post-receive (380B)
1 #!/bin/sh 2 3 REPO=$(basename `pwd`) 4 REPO=${REPO%.*} 5 6 echo "Date: $(LANG=C date "+%a, %d %b %Y %T %z") 7 From: git@2f30.org 8 To: allusers@2f30.org 9 Subject: [$REPO] $(git log -1 --pretty=format:"%s || %an") 10 Content-Type: text/plain; charset=\"utf-8\" 11 Content-Transfer-Encoding: 8bit 12 MIME-Version: 1.0 13 14 $(git log -1 -p) 15 " | ssh vortex /usr/sbin/sendmail -f git@2f30.org allusers@2f30.org