]> source.dussan.org Git - jgit.git/commit
DfsPackFile: Do not attempt to read stream if pack doesn't have it 16/204916/2
authorIvan Frade <ifrade@google.com>
Fri, 13 Oct 2023 21:06:37 +0000 (14:06 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 17 Oct 2023 22:45:51 +0000 (15:45 -0700)
commitf91afe5f5764dbe93bdb085f489e056bac6d153c
tree9411a06b4831c9612ce069b9bd3a20c965d05514
parent9323b430b99fd8b1b645d4beec4dba158ff29610
DfsPackFile: Do not attempt to read stream if pack doesn't have it

Other getters (e.g. bitmap or commit graph) cover the case that the
pack doesn't have the corresponding extension.

Do the same here to detect this early and avoid an IOException in
openFile.

Change-Id: I29726b7ede0f795d35543453a3e7f92cee872a78
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java