tag:blogger.com,1999:blog-2717069447490271274.post3568319897152932528..comments2024-10-16T01:53:06.107+02:00Comments on The copy/paste programmer: Git post-receive (commit emails) hook in PythonMattiashttp://www.blogger.com/profile/14558112690683139109noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-2717069447490271274.post-38437430524874887832024-10-16T01:53:06.107+02:002024-10-16T01:53:06.107+02:00Great and I have a dandy offer: Where To Buy House...Great and I have a dandy offer: Where To Buy Houses That Need Renovation <a href="https://groups.google.com/g/homerenotoronto/c/9cCt-ELbJ6g" rel="nofollow">home renovation on a budget</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2717069447490271274.post-83449254646499005442011-09-26T20:47:39.016+02:002011-09-26T20:47:39.016+02:00Rhettigan, yes, if you use something serverside, l...Rhettigan, yes, if you use something serverside, like, say, gitolite or gitosis, you just have to add the hook to yout .git/hooks folder in each of your repos (and you can also set it as the default post-receive template)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2717069447490271274.post-75419991938522713292010-12-13T21:53:23.627+01:002010-12-13T21:53:23.627+01:00Where do I put this file, and how do I set up the ...Where do I put this file, and how do I set up the hook? Do I just drop the file in .git/hooks and put <br /><br />python post_recieve_email.py<br /><br />into .git/hooks/post-receive and make it executable? Is there a way I can do it server side so that all pushes are emails and not everyone has to have python installed locally (even though everyone does)?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2717069447490271274.post-66999682498583304292010-03-17T08:38:43.735+01:002010-03-17T08:38:43.735+01:00$ rpm -ql postfix | grep bin/sendmail /usr/sbin/se...$ rpm -ql postfix | grep bin/sendmail<br />/usr/sbin/sendmail.postfix<br />$ ls -l /etc/alternatives/mta<br />lrwxrwxrwx 1 root root 26 Dec 21 17:19 /etc/alternatives/mta -&gt; /usr/sbin/sendmail.postfix*Anonymousnoreply@blogger.com