]> source.dussan.org Git - jgit.git/commit
More helpful InvalidPathException messages (include reason) 12/15312/3
authorRobin Stocker <robin@nibor.org>
Sat, 10 Aug 2013 15:37:20 +0000 (17:37 +0200)
committerRobin Stocker <robin@nibor.org>
Tue, 3 Dec 2013 22:10:05 +0000 (23:10 +0100)
commite0502ebb032f78227437a7863eea9ca91678e593
treebeca45c596cff603b33ec7c21176d9123aa30464
parent7dc8a4f089c1ca4762cf6fbf2e77898607a5820a
More helpful InvalidPathException messages (include reason)

Instead of just a generic "Invalid path: $path", add a reason for the
cases where it's not obvious what the problem is (e.g. "aux" being
reserved on Windows).

Bug: 413915
Change-Id: Ia6436bd2560e4f049c92d9aac907cb87348605e0
Signed-off-by: Robin Stocker <robin@nibor.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/DirCacheCheckoutMaliciousPathTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/InvalidPathException.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java