#!/usr/bin/env bash # Sets the branch protection for the werkrevisor approval gate; see `tools/branch-protection --help`. set -euo pipefail # The working directory stays the caller's, e.g. for the backup file of tools/branch-protection. root="$(cd "$(dirname "$0")/.." && pwd)" PYTHONPATH="$root" exec python3 -s -m werkrevisor.protection "$@"