|
|
@@ -881,13 +881,17 @@ class WalkFetchConnection extends BaseFetchConnection { |
|
|
|
void downloadPack(final ProgressMonitor monitor) throws IOException { |
|
|
|
String name = "pack/" + packName; //$NON-NLS-1$ |
|
|
|
WalkRemoteObjectDatabase.FileStream s = connection.open(name); |
|
|
|
PackParser parser = inserter.newPackParser(s.in); |
|
|
|
parser.setAllowThin(false); |
|
|
|
parser.setObjectChecker(objCheck); |
|
|
|
parser.setLockMessage(lockMessage); |
|
|
|
PackLock lock = parser.parse(monitor); |
|
|
|
if (lock != null) |
|
|
|
packLocks.add(lock); |
|
|
|
try { |
|
|
|
PackParser parser = inserter.newPackParser(s.in); |
|
|
|
parser.setAllowThin(false); |
|
|
|
parser.setObjectChecker(objCheck); |
|
|
|
parser.setLockMessage(lockMessage); |
|
|
|
PackLock lock = parser.parse(monitor); |
|
|
|
if (lock != null) |
|
|
|
packLocks.add(lock); |
|
|
|
} finally { |
|
|
|
s.in.close(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |