[Xfce4-commits] <xfce-git-hooks:master> print out which rev caused the hook failure

Brian J. Tarricone noreply at xfce.org
Sun Nov 22 03:52:01 CET 2009


Updating branch refs/heads/master
         to 3a4be28ec739ff8fbd3e2c969777f0454bca5d41 (commit)
       from d424099dc1121ca88950cc7fb362d84869425207 (commit)

commit 3a4be28ec739ff8fbd3e2c969777f0454bca5d41
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Sat Nov 21 18:51:43 2009 -0800

    print out which rev caused the hook failure

 hooks/update-01-history-integrity |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/hooks/update-01-history-integrity b/hooks/update-01-history-integrity
index f3a317c..abea04b 100755
--- a/hooks/update-01-history-integrity
+++ b/hooks/update-01-history-integrity
@@ -80,7 +80,10 @@ committer_info_ok_range() {
     fi
 
     for rev in $revlist; do
-        committer_info_ok $rev || return 1
+        if ! committer_info_ok $rev; then
+            echo "Failed at rev $rev" >&2
+            return 1
+        fi
     done
 
     return 0



More information about the Xfce4-commits mailing list