diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java index 2a5caf854..57dca95a3 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java @@ -977,8 +977,10 @@ public class PackWriter { } private void writeObjects(PackOutputStream out) throws IOException { - for (List list : objectsLists) - writeObjects(out, list); + writeObjects(out, objectsLists[Constants.OBJ_COMMIT]); + writeObjects(out, objectsLists[Constants.OBJ_TAG]); + writeObjects(out, objectsLists[Constants.OBJ_TREE]); + writeObjects(out, objectsLists[Constants.OBJ_BLOB]); } private void writeObjects(PackOutputStream out, List list)