projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce9ab8f
)
inc/CommitCheck/SingleIssue.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 26 Jan 2011 08:47:28 +0000
(16:47 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 26 Jan 2011 08:47:28 +0000
(16:47 +0800)
inc/CommitCheck/SingleIssue.php
patch
|
blob
|
history
diff --git
a/inc/CommitCheck/SingleIssue.php
b/inc/CommitCheck/SingleIssue.php
index
3d38279
..
4b0409e
100644
(file)
--- a/
inc/CommitCheck/SingleIssue.php
+++ b/
inc/CommitCheck/SingleIssue.php
@@
-8,7
+8,7
@@
class MTrackCommitCheck_SingleIssue implements IMTrackCommitListener
function vetoCommit($msg, $files, $actions,$checker)
{
// checks for XXXX #123 - XXXX YYYY
- if (!preg_match("/^[a-z]+\s+#[0-9]+\s+-\s+[a-z]+\s/i", $msg)) {
+ if (!preg_match("/^
\s*
[a-z]+\s+#[0-9]+\s+-\s+[a-z]+\s/i", $msg)) {
return "Commit messages must be in the format 'fix #123 - some description'\n You used '$msg'";
}
// we need to reject