#!/bin/bash

if [ -z "$1" ]
then
	printf 'Repository: '
	read
	set "$REPLY"
fi

if [ -z "$2" ]
then
	printf 'Branch    : '
	read
	set "$1" "$REPLY"
fi

cd "$1" && \
git symbolic-ref HEAD refs/heads/"$2"
