summaryrefslogtreecommitdiffstats
path: root/git-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/sanitize-commit4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 9ff78c5..7e8d8bd 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -520,6 +520,10 @@ while (<MSG>) {
complain_ln("Multiple tasks in one footer", "") if ($1 =~ /[ ,]/);
} elsif (/^Pick-to: *(.*)/i) {
for my $pick (split(/\s+/, $1)) {
+ if (exists($picktos{$pick})) {
+ complain_ln("Duplicate entry '$pick' in Pick-to footer", "pickto", 1);
+ next;
+ }
$picktos{$pick} = 1;
my $valid_pick = 0;
if ($repo !~ /\/tqtc-/ && $pick =~ /^(\d+\.\d+)\.\d+$/