git.droids-corp.org
/
git-central.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
88fec76ce6db230a0d78841b7c09a0589d89c172
[git-central.git]
/
client
/
commit-msg-trac
1
#!/bin/sh
2
3
if test -f $GIT_DIR/MERGE_MSG ; then
4
exit 0
5
fi
6
7
grep -i '\(\(re\|refs\|qa\) #[0-9]\+\)\|\(no ticket\)' "$1" > /dev/null
8
9
if [ $? -ne 0 ]
10
then
11
echo "Please reference a ticket"
12
exit 1
13
fi
14