summaryrefslogtreecommitdiffstats
path: root/packaging/pre-push
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/pre-push')
-rwxr-xr-xpackaging/pre-push16
1 files changed, 16 insertions, 0 deletions
diff --git a/packaging/pre-push b/packaging/pre-push
new file mode 100755
index 0000000..8a71369
--- /dev/null
+++ b/packaging/pre-push
@@ -0,0 +1,16 @@
+#!/bin/bash -e
+
+cat >/dev/null # Just discard stdin data
+
+if [[ -f /proc/$PPID/cmdline ]]; then
+ while read -d $'\0' arg ; do
+ if [[ "$arg" == '--tags' ]] ; then
+ exit 0
+ fi
+ done </proc/$PPID/cmdline
+fi
+
+branch=`git rev-parse --abbrev-ref HEAD`
+if [[ "$branch" = master && "$*" == *github* ]]; then
+ make gensend
+fi