The branch, master on karma.git has been updated from 0f16aa9900ae3360fe65c11a031f08082bae37fa (commit) to 83c34e4cef80b939ad72870fb5ed8adb1ddf3632 (commit)
http://git.php.net/?p=karma.git;a=log;h=83c34e4cef80b939ad72870fb5ed8adb1ddf3632;hp=0f16aa9900ae3360fe65c11a031f08082bae37fa Summary of changes: http://git.php.net/?p=karma.git;a=log;h=83c34e4cef80b939ad72870fb5ed8adb1ddf3632;hp=0f16aa9900ae3360fe65c11a031f08082bae37fa hooks/post-receive | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) -- Log ---------------------------------------- commit 83c34e4cef80b939ad72870fb5ed8adb1ddf3632 Author: David Soria Parra <d...@php.net> Date: Sun Jan 22 04:36:57 2012 +0100 Use abbrevated commit hashes in the email header diff --git a/hooks/post-receive b/hooks/post-receive index 8c90406..5c3a216 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -200,7 +200,7 @@ generate_email() # that we can build from the parameters describe=$(git describe $rev 2>/dev/null) if [ -z "$describe" ]; then - describe=$rev + describe=$(git rev-parse --short $rev) fi generate_email_header commit 469b8d185c9b990b5ed6cf1e2da7316f469d3874 Author: David Soria Parra <d...@php.net> Date: Sun Jan 22 04:33:06 2012 +0100 Do not complain about missing config variable If we do not have a hook.* variable set we just don't send the mail, that's it. No reason to complain. diff --git a/hooks/post-receive b/hooks/post-receive index b86edb3..8c90406 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -169,8 +169,6 @@ prep_for_email() config_name="hooks.mailinglist" ;; esac - echo >&2 "*** $config_name is not set so no email will be sent" - echo >&2 "*** for $refname update $oldrev->$newrev" return 1 fi commit e8292a5d4432df5ffd8a9e92ca2776f5a17b44d5 Author: David Soria Parra <d...@php.net> Date: Sun Jan 22 04:31:48 2012 +0100 Only notify user that we are sending mails when we have recipients diff --git a/hooks/post-receive b/hooks/post-receive index c7d5108..b86edb3 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -736,7 +736,7 @@ maxlines=$(git config hooks.emailmaxlines) diffopts=$(git config hooks.diffopts) : ${diffopts:="--stat --summary --find-copies-harder"} -echo "Sending notifications to $recipients." +[ -n "$recipients" ] && echo "Sending notifications to $recipients." # --- Main loop # Allow dual mode: run from the command line just like the update hook, or Thank you for your contribution. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php