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".