Skip to content

Commit 322ba60

Browse files
committed
Merge branch 'master-1.3.x'
Conflicts: Source/MantisSourceBase.class.php
2 parents 61a6048 + ef84508 commit 322ba60

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Source/MantisSourceBase.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class MantisSourceBase extends MantisPlugin
1717
*
1818
* Numbering follows Semantic Versioning. Major version increments indicate
1919
* a change in the minimum required MantisBT version: 0=1.2; 1=1.3, 2=2.x.
20-
* The framework version is incremented when the plugin's core file change.
20+
* The framework version is incremented when the plugin's core files change.
2121
*/
2222
const FRAMEWORK_VERSION = '2.0.0';
2323

Source/MantisSourceGitBasePlugin.class.php

+7-10
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@ abstract class MantisSourceGitBasePlugin extends MantisSourcePlugin
1818
* Git branch name validation regex.
1919
* Based on rules defined in man page
2020
* http://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
21+
* - Must not start with '/'; cannot contain '/.', '//', '@{' or '\';
22+
* cannot be a single '@': `^(?!/|.*([/.]\.|//|@\{|\\\\)|@$)`
23+
* - One or more chars, except the following: ASCII control, space,
24+
* tilde, caret, colon, question mark, asterisk, open bracket:
25+
* `[^\000-\037\177 ~^:?*[]+`
26+
* - Must not end with '.lock', '/' or '.': `(?<!\.lock|[/.])$`
2127
*/
22-
private $valid_branch_regex = '%'
23-
# Must not start with '/'; cannot contain '/.', '//', '@{' or '\';
24-
# cannot be a single '@'.
25-
. '^(?!/|.*([/.]\.|//|@\{|\\\\)|@$)'
26-
# One or more chars, except the following: ASCII control, space,
27-
# tilde, caret, colon, question mark, asterisk, open bracket.
28-
. '[^\000-\037\177 ~^:?*[]+'
29-
# Must not end with '.lock', '/' or '.'
30-
. '(?<!\.lock|[/.])$'
31-
. '%';
28+
private $valid_branch_regex = '%^(?!/|.*([/.]\.|//|@\{|\\\\)|@$)[^\000-\037\177 ~^:?*[]+(?<!\.lock|[/.])$%';
3229

3330
/**
3431
* Error constants

tools/bump-version.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,13 @@ function bump_version_and_commit( $p_version, &$p_framework_version ) {
146146
}
147147

148148
// Generate commit message
149-
$t_message = "Bump version to $t_new_version\n\n";
150-
$t_message .= "VCS plugins changes:\n";
151-
foreach( get_changed_plugins() as $t_plugin ) {
152-
$t_message .= "- $t_plugin " . $g_plugins[$t_plugin] . "\n";
149+
$t_message = "Bump version to $t_new_version";
150+
$t_changed_plugins = get_changed_plugins();
151+
if( $t_changed_plugins ) {
152+
$t_message .= "\n\nVCS plugins changes:\n";
153+
foreach( $t_changed_plugins as $t_plugin ) {
154+
$t_message .= "- $t_plugin " . $g_plugins[$t_plugin] . "\n";
155+
}
153156
}
154157

155158
// Commit

0 commit comments

Comments
 (0)