Subject: [JGIT PATCH 1/3] Fix IncorrectObjectTypeException thrown for incorrect ^{blob}

From: Jonas Fonseca <[email-masked]>
Date: Fri, 12 Sep 2008 12:57:04 +0200

Signed-off-by: Jonas Fonseca <[email-masked]>
---
 .../src/org/spearce/jgit/lib/Repository.java       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
index b27c23d..730a267 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
@@ -628,7 +628,7 @@ else if (item.equals("blob")) {
 									ref = mapObject(refId, null);
 								}
 								if (!(ref instanceof byte[]))
-									throw new IncorrectObjectTypeException(refId,  Constants.TYPE_COMMIT);
+									throw new IncorrectObjectTypeException(refId,  Constants.TYPE_BLOB);
 							}
 							else if (item.equals("")) {
 								ref = mapObject(refId, null);
-- 
1.6.0.1.451.gc8d31

-- 
Jonas Fonseca