modified GitHead parse;

Consider the case where a tag is named "refs/heads/some-tag". This
case is unlikely, but it may cause ill side-effects because it'll
be parsed as both a Head and a Tag. "refs/tags/refs/heads/some-tag".
Merge pull request #1715 from bergerjac/prs/GitHead

modified GitHead parse