Merge "Use readFully() instead of read()"
This commit is contained in:
commit
6bddae5775
|
@ -599,7 +599,7 @@ private void onOpenPack() throws IOException {
|
|||
JGitText.get().packObjectCountMismatch, packCnt, idx.getObjectCount(), getPackFile()));
|
||||
|
||||
fd.seek(length - 20);
|
||||
fd.read(buf, 0, 20);
|
||||
fd.readFully(buf, 0, 20);
|
||||
if (!Arrays.equals(buf, packChecksum))
|
||||
throw new PackMismatchException(MessageFormat.format(
|
||||
JGitText.get().packObjectCountMismatch
|
||||
|
|
Loading…
Reference in New Issue