projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fa649d
)
inc/CommitCheck/SingleIssue.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 26 Jan 2011 04:06:41 +0000
(12:06 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 26 Jan 2011 04:06:41 +0000
(12:06 +0800)
inc/CommitCheck/SingleIssue.php
patch
|
blob
|
history
diff --git
a/inc/CommitCheck/SingleIssue.php
b/inc/CommitCheck/SingleIssue.php
index
a665556
..
c57c81f
100644
(file)
--- a/
inc/CommitCheck/SingleIssue.php
+++ b/
inc/CommitCheck/SingleIssue.php
@@
-7,7
+7,7
@@
class MTrackCommitCheck_SingleIssue implements IMTrackCommitListener
function vetoCommit($msg, $files, $actions)
{
-
+ // checks for XXXX #123 - XXXX YYYY
if (!preg_match("/^[a-z]+\s+#[0-9]+\s+-\s+[a-z]+\s/i", $msg)) {
return "Commit messages must be in the format 'fix #123 - some description"
}