Parse ref from hook, get current branch, cleanup Git::get_remote_branches