Open
Description
It looks like LibGit2Sharp is not that git.git compliant when it comes to weirdly named references. Let's fix this!
Given a repo with a tag refs/tags/refs/tags/v1.0
TagCollection["v1.0"]
shouldn't resolve anythingTagCollection["refs/tags/v1.0"]
should correctly resolve itTagCollection["refs/tags/refs/tags/v1.0"]
should correctly resolve it
Given a repo with two tags refs/tags/refs/tags/v1.0
and refs/tags/v1.0
TagCollection["v1.0"]
should resolverefs/tags/v1.0
TagCollection["refs/tags/v1.0"]
should resolverefs/tags/v1.0
TagCollection["refs/tags/refs/tags/v1.0"]
should resolverefs/tags/refs/tags/v1.0
It would make sense to make BranchCollection
consistent with this behavior as well.
Given a repo with a tag refs/tags/v1.0
and a branch refs/heads/v1.0
TagCollection["v1.0"]
should resolverefs/tags/v1.0
BranchCollection["v1.0"]
should resolverefs/heads/v1.0