-
Notifications
You must be signed in to change notification settings - Fork 905
Closed
Milestone
Description
Although quite uncommon, annotated tags may be chained.
It might be handy to also provide the consumer with a shortcut to directly return the recursively peeled target of a Tag
and make the following test pass
[Fact]
public void CanRetrieveThePeeledTargetOfATagPointingToATag()
{
using (var repo = new Repository(BareTestRepoPath))
{
Tag tag = repo.Tags["test"];
Assert.True(tag.Target is TagAnnotation);
Assert.True(tag.PeeledTarget is Commit);
}
}