Browse Source

Properly format pack checksums in PackFile.idx()

Change-Id: Id805850dbe9a3d633168f3056e06ddeafd86f961
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.1
Matthias Sohn 6 years ago
parent
commit
a33e4dc58a
  1. 5
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackFile.java

5
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackFile.java

@ -187,8 +187,9 @@ public class PackFile implements Iterable<PackIndex.MutableEntry> {
} else if (!Arrays.equals(packChecksum, idx.packChecksum)) { } else if (!Arrays.equals(packChecksum, idx.packChecksum)) {
throw new PackMismatchException(MessageFormat.format( throw new PackMismatchException(MessageFormat.format(
JGitText.get().packChecksumMismatch, JGitText.get().packChecksumMismatch,
packFile.getPath(), packChecksum, packFile.getPath(),
idx.packChecksum)); ObjectId.fromRaw(packChecksum).name(),
ObjectId.fromRaw(idx.packChecksum).name()));
} }
loadedIdx = idx; loadedIdx = idx;
} catch (InterruptedIOException e) { } catch (InterruptedIOException e) {

Loading…
Cancel
Save