summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-04-16 08:55:44 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-04-16 17:04:37 -0700
commit6029bb24adafd4434f362c58e2f00c0057502f45 (patch)
treed0824159dab52dba71fd6b65b3d6a3a531ecc157 /org.eclipse.jgit
parent2bb8defa5447c15a4fcbf23aaace9f11995f3ad0 (diff)
downloadjgit-6029bb24adafd4434f362c58e2f00c0057502f45.tar.gz
jgit-6029bb24adafd4434f362c58e2f00c0057502f45.zip
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>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java2
1 files changed, 1 insertions, 1 deletions
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 cce0a17d00..85522edc49 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 @@ public class ReceivePack {
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());
}
}