]> source.dussan.org Git - jgit.git/commit
Fix getPackedRefs to not throw NoSuchFileException 59/199959/1
authorPrudhvi Akhil Alahari <quic_prudhvi@quicinc.com>
Thu, 16 Feb 2023 11:11:55 +0000 (16:41 +0530)
committerPrudhvi Akhil Alahari <quic_prudhvi@quicinc.com>
Thu, 16 Feb 2023 11:14:12 +0000 (16:44 +0530)
commit012cb779304ccc6c089be06a2f5c12c293f11453
tree9ba451a62675190c5ebb88619e21421d45aaed8d
parentb5de5ccb9e6491a1abafc791db2cc7ac3af74f31
Fix getPackedRefs to not throw NoSuchFileException

Since Files.newInputStream is from java.nio package, it throws
java.nio.file.NoSuchFileException. This was missed in the change
I00da88e. Without this change, getPackedRefs fails with
NoSuchFileException when there is no packed-refs file in a project.

Change-Id: I93c202ddb73a0a5979af8e4d09e45f5645664b45
Signed-off-by: Prudhvi Akhil Alahari <quic_prudhvi@quicinc.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java