# A git pre-push hook that declines commits that don't contain a Reviewed-By:
# tag. The tag must be present on the beginning of the line. To activate, copy
# The commit message should also be based on .git-commit-template, although
# that is just best practice and not enforced
if has_rb:
return True
return False
print("Full message:\n======")
print("======")
# man 5 githooks says:
# Information about what is to be pushed is provided on the hook's
# standard input with lines of the form:
# <local ref> SP <local sha1> SP <remote ref> SP <remote sha1> LF
no_rb_list = []
return no_rb_list
# Don't warn when pushing to personal repositories, only origin
if remote != 'origin':
sys.exit(0)
sys.exit(1)