diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java index cce0a17d0..85522edc4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java @@ -827,7 +827,7 @@ private void checkConnectivity() throws IOException { throw new MissingObjectException(o, Constants.TYPE_BLOB); if (ensureObjectsProvidedVisible && !providedObjects.contains(o)) - throw new MissingObjectException(o, Constants.TYPE_BLOB); + throw new MissingObjectException(o, o.getType()); } }