#!/bin/bash

branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')

if [[ "$branch" = "trunk" ]]; then
    echo "Error: pushing directly to the trunk branch is prohibited"
    exit 1
fi
