]> source.dussan.org Git - jgit.git/commit
Check for duplicate names after folding case in ObjectChecker 80/23280/2
authorShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 20:59:29 +0000 (13:59 -0700)
committerShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 23:06:10 +0000 (16:06 -0700)
commit0aa682fc68a80704160102fc07dea5611c010746
treee662f76dd4e0fe75549376eca9b3d033cc2d5b9f
parente2f63788470a1cdd2d591505a00dd13ff1bf6a34
Check for duplicate names after folding case in ObjectChecker

Mac OS X and Windows filesystems are generally case insensitive and
will fold 'a' and 'A' to the same directory entry. If the checker is
enforcing safe semantics for these platforms, track all names and
look for duplicates after folding case and normalizing to NFC.

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