how to set up e-mail notification?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have set up a Git repository as a shared repository as described in
the CVS-to-Git conversion manual.

Now I want this shared Git repository to send out notification e-mails
after commits, simulating what with CVS was achieved by
adding to CVSROOT/loginfo the lines

---------------------
# CVS notifications to all users on commit
ALL (echo ""; echo %{sVv}; date; cat) | mutt -s "OKlibrary CVS Commit 
-- $USER" e-mail-address_1 e-mail-address_2 
---------------------

Now I understand that I shall make

hooks/post-commit

executable, and then fill the file with some script which will send
the e-mails: But apparently this script does not have any parameters,
that is, no information is supplied to it?

So the idea is to write some program which reads the last commit and extracts
the information from the git-repository, and sends the e-mail?

Now I would guess many others have already solved that task, and so I would
be glad it they could tell me such a little script (standard Linux environment).

Thanks in any case!

Oliver

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux