[git] karma.git branch master updated. 8d59532
| From: | dsp@php.net | Date: | Tue, 24 Jan 2012 16:04:41 +0000 |
| Subject: | [git] karma.git branch master updated. 8d59532 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67526@lists.php.net to get a copy of this message | ||
The branch, master on karma.git has been updated
via 8d595325d65b7de86651483a1705a0ee2a4b4bd5 (commit)
from 7c248f479715e02c72ea74942830b9643651be8c (commit)
http://git.php.net/?p=karma.git;a=log;h=8d595325d65b7de86651483a1705a0ee2a4b4bd5;hp=7c248f479715e02c72ea74942830b9643651be8c
Summary of changes:
hooks/post-receive | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
-- Log ----------------------------------------
commit 8d595325d65b7de86651483a1705a0ee2a4b4bd5
Author: David Soria Parra <dsp@php.net>
Date: Tue Jan 24 16:57:41 2012 +0100
Always use a abbrev sha1 and not a described tag
Described tag can confuse people if the tag is really old (e.g. web/php.git).
We better always use the abbrev sha1 commit hash.
diff --git a/hooks/post-receive b/hooks/post-receive
index 341a00d..3a45616 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -198,10 +198,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=$(git rev-parse --short $rev)
- fi
+ describe=$(git rev-parse --short $rev)
generate_email_header
Thank you for your contribution.