This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "theslinux-home". The branch, core has been updated via ae5b5ef23437749bf989ef411e3cec8cb7d24810 (commit) from a4c02cfcdac6f79abe41a14baf042b579c0f7ecc (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit ae5b5ef23437749bf989ef411e3cec8cb7d24810 Author: Ky-Anh Huynh <kyanh@xxxxxxxxxxxxx> Date: Sat Jul 27 05:31:01 2013 +0700 git.hook.post-receive-email: + commit subject to email Subject This makes the email Subject longer than normal, but it may be useful. It is very noisy to see that every emails have the *same* subject. TODO: Should we remove branch name/type from the email Subject? ----------------------------------------------------------------------- Summary of changes: bin/git.hook.post-receive-email.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/git.hook.post-receive-email.sh b/bin/git.hook.post-receive-email.sh index 3198b16..fc65807 100755 --- a/bin/git.hook.post-receive-email.sh +++ b/bin/git.hook.post-receive-email.sh @@ -199,10 +199,7 @@ generate_email() # Email parameters # The email subject will contain the best description of the ref # that we can build from the parameters - describe=$(git describe $rev 2>/dev/null) - if [ -z "$describe" ]; then - describe=$rev - fi + describe="$(git log --pretty="format:%h %s" $rev -1)" generate_email_header @@ -232,7 +229,7 @@ generate_email_header() # Generate header cat <<-EOF To: $recipients - Subject: $projectdesc $refname_type $short_refname ${change_type}d + Subject: $projectdesc $refname_type $short_refname ${change_type}d $describe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit hooks/post-receive -- theslinux-home -- Purpose: Store commits, feeds from other projects Post: mailto:theslinux-phantom@xxxxxxxxxxxxx Archive, Gmane: http://theslinux.org/lists/phantom/ Subscribe: mailto:theslinux-phantom-request@xxxxxxxxxxxxx?Subject=subscribe Unsubscribe: mailto:theslinux-phantom-request@xxxxxxxxxxxxx?Subject=unsubscribe Other information: http://theslinux.org/lists (vi) or http://theslinux.org/lists/en (en) Support: mailto:theslinux-questions@xxxxxxxxxxxxx