projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9687dd6
)
inc/CommitCheck/SingleIssue.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 26 Jan 2011 08:48:58 +0000
(16:48 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 26 Jan 2011 08:48:58 +0000
(16:48 +0800)
inc/CommitCheck/SingleIssue.php
patch
|
blob
|
history
diff --git
a/inc/CommitCheck/SingleIssue.php
b/inc/CommitCheck/SingleIssue.php
index
a5a8885
..
b86aced
100644
(file)
--- a/
inc/CommitCheck/SingleIssue.php
+++ b/
inc/CommitCheck/SingleIssue.php
@@
-10,7
+10,7
@@
class MTrackCommitCheck_SingleIssue implements IMTrackCommitListener
// checks for XXXX #123 - XXXX YYYY
if (!preg_match("/^\s*[a-z]+\s+#[0-9]+\s+-\s+[a-z]+\s/i", $msg)) {
$msg= trim($msg);
- return "Commit messages must include the exact issue being fixed and in the format\n\n'fix #123 - some description'\n\n You used
'$msg'";
+ return "Commit messages must include the exact issue being fixed and in the format\n\n'fix #123 - some description'\n\n You used
\n
'$msg'";
}
// we need to reject
//asdfasdf #123, 234 ,34