diff options
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/sanitize-commit | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index b38359d..a9cdc13 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -505,6 +505,9 @@ while (<MSG>) { if (!defined($allHeads{$pick})) { complain_ln("Pick-to entry '$pick' is not a valid branch in $repo", "pickto", 1); + } elsif ($pick eq $branch) { + complain_ln("Pick-to entry ${pick} equals source branch '${$branch}'", + "pickto", 1) } } complain_ln("Capitalization of \"Pick-to\" is wrong", "") if (!/^Pick-to:/); |