Skip to content

Commit 610396f

Browse files
committed
tools: Allow check-cherry-picks.sh to be disabled by an env var
The checks performed by this script aren't always useful to downstream consumers of the repo so allow them to disable the script without having to make changes to tox.ini. Change-Id: I4f551dc4b57905cab8aa005c5680223ad1b57639
1 parent 97729aa commit 610396f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/check-cherry-picks.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# to verify that they're all on either master or stable/ branches
55
#
66

7+
# Allow this script to be disabled by a simple env var
8+
if [ ${DISABLE_CHERRY_PICK_CHECK:-0} -eq 1 ]; then
9+
exit 0
10+
fi
11+
712
commit_hash=""
813

914
# Check if the patch is a merge patch by counting the number of parents.

0 commit comments

Comments
 (0)