3 test_description='commit-msg ticket hook'
8 # setup the commit-msg hook
9 install_client_hook 'commit-msg' 'commit-msg'
11 test_expect_success 'rejects with bad message' '
12 echo "$test_name" > file &&
14 ! git commit -m "first"
17 test_expect_success 'rejects with re:' '
18 echo "$test_name" > file &&
20 ! git commit -m "first re: #3200"
23 test_expect_success 'rejects with re no space' '
24 echo "$test_name" > file &&
26 ! git commit -m "first re#3200"
29 test_expect_success 'accepts with re' '
30 echo "$test_name" > file &&
32 git commit -m "first re #3200"
35 test_expect_success 'accepts with RE' '
36 echo "$test_name" > file &&
38 git commit -m "first RE #3200"
41 test_expect_success 'accepts with refs' '
42 echo "$test_name" > file &&
44 git commit -m "first refs #3200"
47 test_expect_success 'accepts with qa' '
48 echo "$test_name" > file &&
50 git commit -m "first qa #3200"