Merge pull request #1146 from novas0x2a/fix-tag-oid

improve ResolveRevision's Ref lookup path