Having "." at the end looks odd.
Re-did git SHA1 computation.

The old approach would usually give me "refs/heads/master", which is
of limited use.