HEAD is no real branch.
Check for possible errors returned from `git_branch_name`.
Update examples in the README.