"Unpeel" annotated tags to get correct changeset

If we just parse the object id of the reference for annotated tags, we
get the annotated tag object and not the reference the tag refers to.
This commit is contained in:
René Pfeuffer
2020-08-27 11:15:13 +02:00
parent 565ec3ff3c
commit 96d16fe4cc
2 changed files with 11 additions and 5 deletions

View File

@@ -127,7 +127,7 @@ public class GitTagsCommand extends AbstractGitCommand implements TagsCommand {
Tag tag = null;
try {
RevObject revObject = revWalk.parseAny(ref.getObjectId());
RevObject revObject = GitUtil.getCommit(repository, revWalk, ref);
if (revObject != null) {
String name = GitUtil.getTagName(ref);