#!/bin/bash
BRANCH=$(git name-rev --name-only HEAD 2>/dev/null)
[ -z "$BRANCH" ] && exit 1
echo "$BRANCH"
