]> git.droids-corp.org - git-central.git/commitdiff
Naive client-side ticket check.
authorStephen Haberman <stephen@exigencecorp.com>
Thu, 19 Jun 2008 22:54:14 +0000 (17:54 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Thu, 19 Jun 2008 22:54:14 +0000 (17:54 -0500)
client/commit-msg [new file with mode: 0644]

diff --git a/client/commit-msg b/client/commit-msg
new file mode 100644 (file)
index 0000000..d5e6498
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+grep '\(re\|refs\|qa\) #[0-9]\+' $1 > /dev/null
+
+if [ $? -ne 0 ]
+then
+    echo "Please reference a ticket"
+    exit 1
+fi
+