]> source.dussan.org Git - jgit.git/commit
BaseSuperprojectWriter: report invalid paths as manifest errors 10/195310/1
authorIvan Frade <ifrade@google.com>
Tue, 23 Aug 2022 19:10:27 +0000 (12:10 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 23 Aug 2022 19:10:27 +0000 (12:10 -0700)
commitca166a0c62af2ea87fdedf2728ac19cb59a12601
treef7fa3614ab0e00135ff78b6156a08e49eb57413f
parent25aceffdc58fdc5707c908fb4c3584116703046e
BaseSuperprojectWriter: report invalid paths as manifest errors

An invalid path in the manifest (e.g. '.') is reported by DirCache in a
runtime exception. In server context this becomes a 500 instead of a user error.

Wrap the runtime invalid path exception into a checked ManifestErrorException that
caller can handle.

Change-Id: I61a2104922765506ae232334891057bb06141d97
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/BareSuperprojectWriter.java