#!/usr/bin/env bash
# action-platform hook
set -euo pipefail
. "$(dirname "$0")/gitflow.sh"
gitflow_check commit-msg "$1"
branch=$(gitflow_current_branch)
git rev-parse -q --verify HEAD >/dev/null 2>&1 && gitflow_check protect "$branch" "$(head -1 "$1")"
previous="$0.pre-action-platform"
[ -x "$previous" ] && exec "$previous" "$@"
exit 0
