From: Stephen Haberman Date: Fri, 20 Jun 2008 00:28:31 +0000 (-0500) Subject: Let in no ticket as well. X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=447cb68110026d76dae15bace74afa696ce77c35;p=git-central.git Let in no ticket as well. --- diff --git a/client/commit-msg b/client/commit-msg index d617e62..60f638e 100644 --- a/client/commit-msg +++ b/client/commit-msg @@ -1,6 +1,6 @@ #!/bin/sh -grep -i '\(re\|refs\|qa\) #[0-9]\+' "$1" > /dev/null +grep -i '\(\(re\|refs\|qa\) #[0-9]\+\)\|\(no ticket\)' "$1" > /dev/null if [ $? -ne 0 ] then diff --git a/tests/t1000-commit-msg-ticket-hook.sh b/tests/t1000-commit-msg-ticket-hook.sh index 8ec92d0..033f08a 100644 --- a/tests/t1000-commit-msg-ticket-hook.sh +++ b/tests/t1000-commit-msg-ticket-hook.sh @@ -50,5 +50,11 @@ test_expect_success 'accepts with qa' ' git commit -m "first qa #3200" ' +test_expect_success 'accepts with no ticket' ' + echo "$test_name" > file && + git add file && + git commit -m "first no ticket" +' + test_done