|
|
@ -194,8 +194,7 @@ public class BundleWriter { |
|
|
|
PackConfig pc = packConfig; |
|
|
|
PackConfig pc = packConfig; |
|
|
|
if (pc == null) |
|
|
|
if (pc == null) |
|
|
|
pc = new PackConfig(db); |
|
|
|
pc = new PackConfig(db); |
|
|
|
PackWriter packWriter = new PackWriter(pc, db.newObjectReader()); |
|
|
|
try (PackWriter packWriter = new PackWriter(pc, db.newObjectReader())) { |
|
|
|
try { |
|
|
|
|
|
|
|
final HashSet<ObjectId> inc = new HashSet<ObjectId>(); |
|
|
|
final HashSet<ObjectId> inc = new HashSet<ObjectId>(); |
|
|
|
final HashSet<ObjectId> exc = new HashSet<ObjectId>(); |
|
|
|
final HashSet<ObjectId> exc = new HashSet<ObjectId>(); |
|
|
|
inc.addAll(include.values()); |
|
|
|
inc.addAll(include.values()); |
|
|
@ -233,8 +232,6 @@ public class BundleWriter { |
|
|
|
w.write('\n'); |
|
|
|
w.write('\n'); |
|
|
|
w.flush(); |
|
|
|
w.flush(); |
|
|
|
packWriter.writePack(monitor, monitor, os); |
|
|
|
packWriter.writePack(monitor, monitor, os); |
|
|
|
} finally { |
|
|
|
|
|
|
|
packWriter.release(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|