post-receive-email

How to setup post-receive-email Git hook with Gitolite

半城伤御伤魂 提交于 2019-12-17 22:17:01
问题 I'm using post-receive-email hook from the Git distribution to send e-mails to certain users when Git repository is updated (hook invoked from post-receive ). All my repositories were managed manually. Now, I get so many repos and so many users and groups that I have to upgrade to some Git repository management system. I picked Gitolite. But I am a bit at loss on how to configure the e-mail notifications. Update: I will elaborate the question a bit: First question is: Where should I put the

sending/ receiving email in Java

亡梦爱人 提交于 2019-12-11 01:36:23
问题 I want to send email through Java (Any email like from yahoo, gmail, or any other part). I tried the code give here, however I get exception as javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642) at javax.mail.Service.connect(Service.java:295) at javax

How to setup post-receive-email Git hook with Gitolite

落爺英雄遲暮 提交于 2019-11-28 17:58:53
I'm using post-receive-email hook from the Git distribution to send e-mails to certain users when Git repository is updated (hook invoked from post-receive ). All my repositories were managed manually. Now, I get so many repos and so many users and groups that I have to upgrade to some Git repository management system. I picked Gitolite. But I am a bit at loss on how to configure the e-mail notifications. Update: I will elaborate the question a bit: First question is: Where should I put the hook and should I change it somehow so it would work with Gitolite? Second question: The standard post