Skip to content
Snippets Groups Projects
Commit 6029bb24 authored by Shawn Pearce's avatar Shawn Pearce
Browse files

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: default avatarShawn O. Pearce <spearce@spearce.org>
parent 2bb8defa
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment