summaryrefslogtreecommitdiff
path: root/git-hooks
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>2020-05-08 00:12:18 +0200
committerDaniel Smith <Daniel.Smith@qt.io>2020-05-15 07:39:21 +0000
commit44bdb4b8d3d43f15b70d819a6d391b62c554b6b5 (patch)
tree3002ed7687db4396ff5348df56ce7d19a797b478 /git-hooks
parentb4d7abe9eb7018b2013bc23371d7d2454a73c598 (diff)
downloadqtrepotools-44bdb4b8d3d43f15b70d819a6d391b62c554b6b5.tar.gz
recognize space-separated tasks as well when complaining about them
Change-Id: I36eb87b815902b153134b1772f2a0707d4621d20 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/sanitize-commit4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 16e4120..020fb94 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -479,10 +479,10 @@ while (<MSG>) {
} elsif (/^Signed-off-by:/i) {
$badsign = $lineno;
} elsif (/^Task-number: *(.*)/i) {
- complain_ln("Multiple tasks in one footer", "") if ($1 =~ /,/);
+ complain_ln("Multiple tasks in one footer", "") if ($1 =~ /[ ,]/);
complain_ln("Capitalization of \"Task-number\" is wrong", "") if (!/^Task-number:/);
} elsif (/^Fixes: *(.*)/i) {
- complain_ln("Multiple tasks in one footer", "") if ($1 =~ /,/);
+ complain_ln("Multiple tasks in one footer", "") if ($1 =~ /[ ,]/);
complain_ln("Capitalization of \"Fixes\" is wrong", "") if (!/^Fixes:/);
}
} elsif (/^\[change-?log\]/i) {