]> source.dussan.org Git - jgit.git/commit
DirCache: Refuse to read files with invalid paths
authorShawn Pearce <sop@google.com>
Tue, 25 Nov 2014 19:43:32 +0000 (11:43 -0800)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 18 Dec 2014 13:48:46 +0000 (14:48 +0100)
commit8d36fa343c689d1334ddc1f722c153203c1d13f7
treeb9e33c3c41a93bc06b03d170ad72e2c9738c24d9
parentd547d0c44b061c0d4e59629588b3074d90747e2d
DirCache: Refuse to read files with invalid paths

If the DirCache contains a path that is known to be invalid, refuse to
read the DirCache into memory.  This avoids confusing errors later if
an invalid path read from the DirCache were to be passed into a new
DirCacheEntry constructor.

Change-Id: Ic033d81e23a5fbd554cc4dff80a232504562ffa8
org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheBasicTest.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java