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 <d...@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.

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to