]> source.dussan.org Git - jgit.git/commit
Change DirCacheCheckout to verify path using ObjectChecker 30/23230/3
authorShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 19:01:56 +0000 (12:01 -0700)
committerShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 23:06:10 +0000 (16:06 -0700)
commite2f63788470a1cdd2d591505a00dd13ff1bf6a34
treedd309af5affb4a1f650d62e008ca3b056b4f81ac
parented3879e38964c8d41068c1171161bad2be0d3500
Change DirCacheCheckout to verify path using ObjectChecker

Reuse the generic logic in ObjectChecker to examine paths.
This required extracting the scanner loop to check for bad
characters within the path name segment.

Change-Id: I02e964d114fb544a0c1657790d5367c3a2b09dff
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java