diff options
author | Daniel Smith <daniel.smith@qt.io> | 2021-10-27 12:13:20 +0200 |
---|---|---|
committer | Daniel Smith <Daniel.Smith@qt.io> | 2021-10-28 08:42:49 +0000 |
commit | 6fa8b6904a6775175dff46f3c0ccf87fa709c788 (patch) | |
tree | 40daebb1b3075c36cbc3cb95c1d85d4ccb86633c /git-hooks | |
parent | 47b15af0dab2650902501e497fc4481a1eef9060 (diff) |
Give a -1 when pick-to on a release branch lacks a pick to stable branch
This change should help ensure that fixes submitted directly
to a release branch (often due to release crunches) make their way
upstream to the stable branch. This check is limited to numerically
versioned branches, 6.2.0 release branch for example has an
upstream stable branch of 6.2.
Change-Id: I17f6576c63a40f89802bad97111560086cce1465
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/sanitize-commit | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 71a1afd..3970789 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -592,6 +592,14 @@ if ($with_pickbot) { complain("Omission of $masterName from Pick-to footer might be incorrect", "", -1); } + if ($target =~ /(\d+\.\d+)\.\d+$/) { + # Verify that the upstream stable branch is in the pick-to if the current + # target is a release branch. + if (!exists($picktos{$1})) { + complain("Omission of $1 from the Pick-to footer is probably incorrect", + "cherry") + } + } } else { complain("Omission of Pick-to footer is probably incorrect", "cherry"); } |