Tuesday, June 30, 2015

Commit hook on Windows for Git

Configuration must be set in the config file on server. Sample:

        mailinglist = programming@xyz.com
commitlist = programming@xyz.com
mailer = smtp
environment = generic
smtpserver = mail.xyz.com
smtpserverusername = noreply@xyz.com
smtpserverpassword = d
smtpusername = noreply@xyz.com
smtpuser = noreply@xyz
smtppass = d
from = noreply@xyz.com

post-receive may look something like:

#!/bin/sh
echo PWD is $PWD
\\python27\\python hooks/git_multimail.py

No comments: