diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java index 4f53d2267..c3fdacc27 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java @@ -1017,7 +1017,8 @@ public abstract class PackParser { throw new CorruptObjectException(MessageFormat.format( JGitText.get().invalidObject, Constants.typeString(type), - id.name(), e.getMessage()), e); + readCurs.abbreviate(id, 10).name(), + e.getMessage()), e); } }