From f0f222033d31675978446004c23af139622dda0f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 16 Apr 2010 13:55:43 -0400 Subject: Try to avoid spurious error messages when pushing tags. --- repo/hooks/update | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'repo') diff --git a/repo/hooks/update b/repo/hooks/update index 50fc35b2..b78e6d01 100755 --- a/repo/hooks/update +++ b/repo/hooks/update @@ -136,10 +136,13 @@ esac # Local customizations begin here. # -/gitroot/gpsd/hooks/ciabot.py ${refname} $(git rev-list ${oldrev}..${newrev} | tac) +if [ "$oldrev" -a "$newrev"] +then + /gitroot/gpsd/hooks/ciabot.py ${refname} $(git rev-list ${oldrev}..${newrev} | tac) -echo "Files modified:" -git diff --name-only ${oldrev} ${newrev} + echo "Files modified:" + git diff --name-only ${oldrev} ${newrev} +fi # --- Finished exit 0 -- cgit v1.2.1