summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorPhilipp Thun2011-05-26 10:27:23 (EDT)
committer Philipp Thun2011-05-26 10:27:23 (EDT)
commit85ae0ed70f40faeef5b2a96ddfa3e32ed9c07734 (patch)
tree2c3e80a3a7d3b1551a17880c6c199de8c9d80004
parent1ed07bd98816889ad629f0629e301b824ece8038 (diff)
downloadegit-85ae0ed70f40faeef5b2a96ddfa3e32ed9c07734.zip
egit-85ae0ed70f40faeef5b2a96ddfa3e32ed9c07734.tar.gz
egit-85ae0ed70f40faeef5b2a96ddfa3e32ed9c07734.tar.bz2
Fix text decoration for detached HEADrefs/changes/44/3544/1
Bug: 337967 Change-Id: If58dc9e29972fffd473a2a3901b411780652f9af Signed-off-by: Philipp Thun <philipp.thun@sap.com>
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryUtil.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryUtil.java
index 32b419b..f7939fa 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryUtil.java
+++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryUtil.java
@@ -147,7 +147,8 @@ public class RepositoryUtil {
}
} else if (any instanceof RevCommit) {
RevCommit commit = ((RevCommit)any);
- tagMap.put(tagRef.getName(), commit.getCommitterIdent().getWhen());
+ if (commit.name().equals(commitId))
+ tagMap.put(tagRef.getName(), commit.getCommitterIdent().getWhen());
} // else ignore here
}
} catch (IOException e) {