diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-16 13:55:43 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-16 13:55:43 -0400 |
commit | f0f222033d31675978446004c23af139622dda0f (patch) | |
tree | 646a86bdc57c2c1d2ad09bcb2d47c58dcb1ab710 /repo | |
parent | 32c3005bed0f7e3d01d52c3c863652176cf74cc4 (diff) | |
download | gpsd-f0f222033d31675978446004c23af139622dda0f.tar.gz |
Try to avoid spurious error messages when pushing tags.
Diffstat (limited to 'repo')
-rwxr-xr-x | repo/hooks/update | 9 |
1 files changed, 6 insertions, 3 deletions
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 |