summaryrefslogtreecommitdiff
path: root/repo/hooks/update
diff options
context:
space:
mode:
Diffstat (limited to 'repo/hooks/update')
-rwxr-xr-xrepo/hooks/update9
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