From 3a4ebc0c24b7732a57064299153794084fbfae59 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Fri, 8 Feb 2013 06:47:50 +0100 Subject: [PATCH] Really handle annotated tags in MergeCommand Repository.peel() must be called to ensure a tag is really peeled. Change-Id: I83e25f09fad3ad55a3ffe41ab4758f249b7ac9f9 --- org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java index 6eba35e1d..6c6aa7b5c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java @@ -234,6 +234,7 @@ public class MergeCommand extends GitCommand { refLogMessage.append(ref.getName()); // handle annotated tags + ref = repo.peel(ref); ObjectId objectId = ref.getPeeledObjectId(); if (objectId == null) objectId = ref.getObjectId();