print warning/error/fatal messages in one shot
[gitweb.git] / contrib / hooks / post-receive-email
index cbbd02fadd753215b3477c178b74d79a59424ee7..28a06c7f381f9386c6f715e6c3ab89f361d12bc2 100644 (file)
@@ -323,7 +323,7 @@ generate_update_branch_email()
                echo "       via  $rev ($revtype)"
        done
 
-       if [ -z "$fastforward" ]; then
+       if [ "$fast_forward" ]; then
                echo "      from  $oldrev ($oldrev_type)"
        else
                #  1. Existing revisions were removed.  In this case newrev is a