From e685212564d563ff4e131a08b0639cccabbd403c Mon Sep 17 00:00:00 2001 From: Stephen Haberman Date: Thu, 19 Jun 2008 17:54:14 -0500 Subject: [PATCH] Naive client-side ticket check. --- client/commit-msg | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 client/commit-msg diff --git a/client/commit-msg b/client/commit-msg new file mode 100644 index 0000000..d5e6498 --- /dev/null +++ b/client/commit-msg @@ -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 + -- 2.39.5