aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java
index 54e7dd989f..06819d3efe 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java
@@ -409,6 +409,12 @@ public abstract class PackParser {
}
resolveDeltasWithExternalBases(progress);
+
+ if (entryCount < objectCount) {
+ throw new IOException(MessageFormat.format(JGitText
+ .get().packHasUnresolvedDeltas,
+ (objectCount - entryCount)));
+ }
}
}