ReceivePack: Correct type of not provided object

If a tree was referenced but not provided in the pack, report it
as a missing tree and not as a missing blob.

Change-Id: Iab05705349cdf0d30cc3f8afc6698a8d2a941343
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2010-04-16 08:55:44 -07:00
parent 2bb8defa54
commit 6029bb24ad
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
}